home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / languages / ami_nuweb0.87c.lha / nuweb.w < prev    next >
LaTeX Document  |  1994-10-08  |  94.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 6f 63 75 6d 65 6e | 74 73 74 79 6c 65 7b 72 |\documen|tstyle{r|
|00000010| 65 70 6f 72 74 7d 0a 5c | 6e 65 77 69 66 5c 69 66 |eport}.\|newif\if|
|00000020| 73 68 6f 77 63 6f 64 65 | 0a 5c 73 68 6f 77 63 6f |showcode|.\showco|
|00000030| 64 65 74 72 75 65 0a 0a | 5c 73 65 74 6c 65 6e 67 |detrue..|\setleng|
|00000040| 74 68 7b 5c 6f 64 64 73 | 69 64 65 6d 61 72 67 69 |th{\odds|idemargi|
|00000050| 6e 7d 7b 30 69 6e 7d 0a | 5c 73 65 74 6c 65 6e 67 |n}{0in}.|\setleng|
|00000060| 74 68 7b 5c 65 76 65 6e | 73 69 64 65 6d 61 72 67 |th{\even|sidemarg|
|00000070| 69 6e 7d 7b 30 69 6e 7d | 0a 5c 73 65 74 6c 65 6e |in}{0in}|.\setlen|
|00000080| 67 74 68 7b 5c 74 6f 70 | 6d 61 72 67 69 6e 7d 7b |gth{\top|margin}{|
|00000090| 30 69 6e 7d 0a 5c 61 64 | 64 74 6f 6c 65 6e 67 74 |0in}.\ad|dtolengt|
|000000a0| 68 7b 5c 74 6f 70 6d 61 | 72 67 69 6e 7d 7b 2d 5c |h{\topma|rgin}{-\|
|000000b0| 68 65 61 64 68 65 69 67 | 68 74 7d 0a 5c 61 64 64 |headheig|ht}.\add|
|000000c0| 74 6f 6c 65 6e 67 74 68 | 7b 5c 74 6f 70 6d 61 72 |tolength|{\topmar|
|000000d0| 67 69 6e 7d 7b 2d 5c 68 | 65 61 64 73 65 70 7d 0a |gin}{-\h|eadsep}.|
|000000e0| 5c 73 65 74 6c 65 6e 67 | 74 68 7b 5c 74 65 78 74 |\setleng|th{\text|
|000000f0| 68 65 69 67 68 74 7d 7b | 38 2e 39 69 6e 7d 0a 5c |height}{|8.9in}.\|
|00000100| 73 65 74 6c 65 6e 67 74 | 68 7b 5c 74 65 78 74 77 |setlengt|h{\textw|
|00000110| 69 64 74 68 7d 7b 36 2e | 35 69 6e 7d 0a 5c 73 65 |idth}{6.|5in}.\se|
|00000120| 74 6c 65 6e 67 74 68 7b | 5c 6d 61 72 67 69 6e 70 |tlength{|\marginp|
|00000130| 61 72 77 69 64 74 68 7d | 7b 30 2e 35 69 6e 7d 0a |arwidth}|{0.5in}.|
|00000140| 0a 5c 74 69 74 6c 65 7b | 4e 75 77 65 62 20 56 65 |.\title{|Nuweb Ve|
|00000150| 72 73 69 6f 6e 20 30 2e | 38 37 62 20 5c 5c 20 41 |rsion 0.|87b \\ A|
|00000160| 20 53 69 6d 70 6c 65 20 | 4c 69 74 65 72 61 74 65 | Simple |Literate|
|00000170| 20 50 72 6f 67 72 61 6d | 6d 69 6e 67 20 54 6f 6f | Program|ming Too|
|00000180| 6c 7d 0a 5c 64 61 74 65 | 7b 7d 0a 5c 61 75 74 68 |l}.\date|{}.\auth|
|00000190| 6f 72 7b 50 72 65 73 74 | 6f 6e 20 42 72 69 67 67 |or{Prest|on Brigg|
|000001a0| 73 5c 74 68 61 6e 6b 73 | 7b 54 68 69 73 20 77 6f |s\thanks|{This wo|
|000001b0| 72 6b 20 68 61 73 20 62 | 65 65 6e 20 73 75 70 70 |rk has b|een supp|
|000001c0| 6f 72 74 65 64 20 62 79 | 20 41 52 50 41 2c 0a 74 |orted by| ARPA,.t|
|000001d0| 68 72 6f 75 67 68 20 4f | 4e 52 20 67 72 61 6e 74 |hrough O|NR grant|
|000001e0| 20 4e 30 30 30 31 34 2d | 39 31 2d 4a 2d 31 39 38 | N00014-|91-J-198|
|000001f0| 39 2e 7d 20 0a 5c 5c 20 | 5c 73 6c 20 70 72 65 73 |9.} .\\ |\sl pres|
|00000200| 74 6f 6e 40 40 63 73 2e | 72 69 63 65 2e 65 64 75 |ton@@cs.|rice.edu|
|00000210| 0a 5c 5c 20 48 54 4d 4c | 20 73 63 72 61 70 20 67 |.\\ HTML| scrap g|
|00000220| 65 6e 65 72 61 74 6f 72 | 20 62 79 20 4a 6f 68 6e |enerator| by John|
|00000230| 20 44 2e 20 52 61 6d 73 | 64 65 6c 6c 0a 5c 5c 20 | D. Rams|dell.\\ |
|00000240| 5c 73 6c 20 72 61 6d 73 | 64 65 6c 6c 40 40 6d 69 |\sl rams|dell@@mi|
|00000250| 74 72 65 2e 6f 72 67 7d | 0a 0a 5c 62 65 67 69 6e |tre.org}|..\begin|
|00000260| 7b 64 6f 63 75 6d 65 6e | 74 7d 0a 5c 70 61 67 65 |{documen|t}.\page|
|00000270| 6e 75 6d 62 65 72 69 6e | 67 7b 72 6f 6d 61 6e 7d |numberin|g{roman}|
|00000280| 0a 5c 6d 61 6b 65 74 69 | 74 6c 65 0a 5c 74 61 62 |.\maketi|tle.\tab|
|00000290| 6c 65 6f 66 63 6f 6e 74 | 65 6e 74 73 0a 0a 5c 63 |leofcont|ents..\c|
|000002a0| 68 61 70 74 65 72 7b 49 | 6e 74 72 6f 64 75 63 74 |hapter{I|ntroduct|
|000002b0| 69 6f 6e 7d 0a 5c 70 61 | 67 65 6e 75 6d 62 65 72 |ion}.\pa|genumber|
|000002c0| 69 6e 67 7b 61 72 61 62 | 69 63 7d 0a 0a 49 6e 20 |ing{arab|ic}..In |
|000002d0| 31 39 38 34 2c 20 4b 6e | 75 74 68 20 69 6e 74 72 |1984, Kn|uth intr|
|000002e0| 6f 64 75 63 65 64 20 74 | 68 65 20 69 64 65 61 20 |oduced t|he idea |
|000002f0| 6f 66 20 7b 5c 65 6d 20 | 6c 69 74 65 72 61 74 65 |of {\em |literate|
|00000300| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 5c 2f 7d 20 | program|ming\/} |
|00000310| 61 6e 64 0a 64 65 73 63 | 72 69 62 65 64 20 61 20 |and.desc|ribed a |
|00000320| 70 61 69 72 20 6f 66 20 | 74 6f 6f 6c 73 20 74 6f |pair of |tools to|
|00000330| 20 73 75 70 70 6f 72 74 | 20 74 68 65 20 70 72 61 | support| the pra|
|00000340| 63 74 69 73 65 7e 5c 63 | 69 74 65 7b 6b 6e 75 74 |ctise~\c|ite{knut|
|00000350| 68 3a 38 34 7d 2e 0a 48 | 69 73 20 61 70 70 72 6f |h:84}..H|is appro|
|00000360| 61 63 68 20 77 61 73 20 | 74 6f 20 63 6f 6d 62 69 |ach was |to combi|
|00000370| 6e 65 20 50 61 73 63 61 | 6c 20 63 6f 64 65 20 77 |ne Pasca|l code w|
|00000380| 69 74 68 20 5c 54 65 58 | 5c 20 64 6f 63 75 6d 65 |ith \TeX|\ docume|
|00000390| 6e 74 61 74 69 6f 6e 20 | 74 6f 0a 70 72 6f 64 75 |ntation |to.produ|
|000003a0| 63 65 20 61 20 6e 65 77 | 20 6c 61 6e 67 75 61 67 |ce a new| languag|
|000003b0| 65 2c 20 5c 76 65 72 62 | 7c 57 45 42 7c 2c 20 74 |e, \verb||WEB|, t|
|000003c0| 68 61 74 20 6f 66 66 65 | 72 65 64 20 70 72 6f 67 |hat offe|red prog|
|000003d0| 72 61 6d 6d 65 72 73 20 | 61 20 73 75 70 65 72 69 |rammers |a superi|
|000003e0| 6f 72 0a 61 70 70 72 6f | 61 63 68 20 74 6f 20 70 |or.appro|ach to p|
|000003f0| 72 6f 67 72 61 6d 6d 69 | 6e 67 2e 20 48 65 20 77 |rogrammi|ng. He w|
|00000400| 72 6f 74 65 20 73 65 76 | 65 72 61 6c 20 70 72 6f |rote sev|eral pro|
|00000410| 67 72 61 6d 73 20 69 6e | 20 5c 76 65 72 62 7c 57 |grams in| \verb|W|
|00000420| 45 42 7c 2c 0a 69 6e 63 | 6c 75 64 69 6e 67 20 5c |EB|,.inc|luding \|
|00000430| 76 65 72 62 7c 77 65 61 | 76 65 7c 20 61 6e 64 20 |verb|wea|ve| and |
|00000440| 5c 76 65 72 62 7c 74 61 | 6e 67 6c 65 7c 2c 20 74 |\verb|ta|ngle|, t|
|00000450| 68 65 20 70 72 6f 67 72 | 61 6d 73 20 75 73 65 64 |he progr|ams used|
|00000460| 20 74 6f 20 73 75 70 70 | 6f 72 74 0a 6c 69 74 65 | to supp|ort.lite|
|00000470| 72 61 74 65 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |rate pro|gramming|
|00000480| 2e 0a 54 68 65 20 69 64 | 65 61 20 77 61 73 20 74 |..The id|ea was t|
|00000490| 68 61 74 20 61 20 70 72 | 6f 67 72 61 6d 6d 65 72 |hat a pr|ogrammer|
|000004a0| 20 77 72 6f 74 65 20 6f | 6e 65 20 64 6f 63 75 6d | wrote o|ne docum|
|000004b0| 65 6e 74 2c 20 74 68 65 | 20 77 65 62 20 66 69 6c |ent, the| web fil|
|000004c0| 65 2c 20 74 68 61 74 0a | 63 6f 6d 62 69 6e 65 64 |e, that.|combined|
|000004d0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 28 | documen|tation (|
|000004e0| 77 72 69 74 74 65 6e 20 | 69 6e 20 5c 54 65 58 7e |written |in \TeX~|
|000004f0| 5c 63 69 74 65 7b 74 65 | 78 62 6f 6f 6b 7d 29 20 |\cite{te|xbook}) |
|00000500| 77 69 74 68 20 63 6f 64 | 65 0a 28 77 72 69 74 74 |with cod|e.(writt|
|00000510| 65 6e 20 69 6e 20 50 61 | 73 63 61 6c 29 2e 0a 0a |en in Pa|scal)...|
|00000520| 52 75 6e 6e 69 6e 67 20 | 5c 76 65 72 62 7c 74 61 |Running |\verb|ta|
|00000530| 6e 67 6c 65 7c 20 6f 6e | 20 74 68 65 20 77 65 62 |ngle| on| the web|
|00000540| 20 66 69 6c 65 20 77 6f | 75 6c 64 20 70 72 6f 64 | file wo|uld prod|
|00000550| 75 63 65 20 61 20 63 6f | 6d 70 6c 65 74 65 0a 50 |uce a co|mplete.P|
|00000560| 61 73 63 61 6c 20 70 72 | 6f 67 72 61 6d 2c 20 72 |ascal pr|ogram, r|
|00000570| 65 61 64 79 20 66 6f 72 | 20 63 6f 6d 70 69 6c 61 |eady for| compila|
|00000580| 74 69 6f 6e 20 62 79 20 | 61 6e 20 6f 72 64 69 6e |tion by |an ordin|
|00000590| 61 72 79 20 50 61 73 63 | 61 6c 20 63 6f 6d 70 69 |ary Pasc|al compi|
|000005a0| 6c 65 72 2e 0a 54 68 65 | 20 70 72 69 6d 61 72 79 |ler..The| primary|
|000005b0| 20 66 75 6e 63 74 69 6f | 6e 20 6f 66 20 5c 76 65 | functio|n of \ve|
|000005c0| 72 62 7c 74 61 6e 67 6c | 65 7c 20 69 73 20 74 6f |rb|tangl|e| is to|
|000005d0| 20 61 6c 6c 6f 77 20 74 | 68 65 20 70 72 6f 67 72 | allow t|he progr|
|000005e0| 61 6d 6d 65 72 20 74 6f | 0a 70 72 65 73 65 6e 74 |ammer to|.present|
|000005f0| 20 65 6c 65 6d 65 6e 74 | 73 20 6f 66 20 74 68 65 | element|s of the|
|00000600| 20 70 72 6f 67 72 61 6d | 20 69 6e 20 61 6e 79 20 | program| in any |
|00000610| 64 65 73 69 72 65 64 20 | 6f 72 64 65 72 2c 20 72 |desired |order, r|
|00000620| 65 67 61 72 64 6c 65 73 | 73 20 6f 66 0a 74 68 65 |egardles|s of.the|
|00000630| 20 72 65 73 74 72 69 63 | 74 69 6f 6e 73 20 69 6d | restric|tions im|
|00000640| 70 6f 73 65 64 20 62 79 | 20 74 68 65 20 70 72 6f |posed by| the pro|
|00000650| 67 72 61 6d 6d 69 6e 67 | 20 6c 61 6e 67 75 61 67 |gramming| languag|
|00000660| 65 2e 20 54 68 75 73 2c | 20 74 68 65 0a 70 72 6f |e. Thus,| the.pro|
|00000670| 67 72 61 6d 6d 65 72 20 | 69 73 20 66 72 65 65 20 |grammer |is free |
|00000680| 74 6f 20 70 72 65 73 65 | 6e 74 20 68 69 73 20 70 |to prese|nt his p|
|00000690| 72 6f 67 72 61 6d 20 69 | 6e 20 61 20 74 6f 70 2d |rogram i|n a top-|
|000006a0| 64 6f 77 6e 20 66 61 73 | 68 69 6f 6e 2c 0a 62 6f |down fas|hion,.bo|
|000006b0| 74 74 6f 6d 2d 75 70 20 | 66 61 73 68 69 6f 6e 2c |ttom-up |fashion,|
|000006c0| 20 6f 72 20 77 68 61 74 | 65 76 65 72 20 73 65 65 | or what|ever see|
|000006d0| 6d 73 20 62 65 73 74 20 | 69 6e 20 74 65 72 6d 73 |ms best |in terms|
|000006e0| 20 6f 66 20 70 72 6f 6d | 6f 74 69 6e 67 0a 75 6e | of prom|oting.un|
|000006f0| 64 65 72 73 74 61 6e 64 | 69 6e 67 20 61 6e 64 20 |derstand|ing and |
|00000700| 6d 61 69 6e 74 65 6e 61 | 6e 63 65 2e 0a 0a 52 75 |maintena|nce...Ru|
|00000710| 6e 6e 69 6e 67 20 5c 76 | 65 72 62 7c 77 65 61 76 |nning \v|erb|weav|
|00000720| 65 7c 20 6f 6e 20 74 68 | 65 20 77 65 62 20 66 69 |e| on th|e web fi|
|00000730| 6c 65 20 77 6f 75 6c 64 | 20 70 72 6f 64 75 63 65 |le would| produce|
|00000740| 20 61 20 5c 54 65 58 5c | 20 66 69 6c 65 2c 20 72 | a \TeX\| file, r|
|00000750| 65 61 64 79 0a 74 6f 20 | 62 65 20 70 72 6f 63 65 |eady.to |be proce|
|00000760| 73 73 65 64 20 62 79 20 | 5c 54 65 58 5c 40 40 2e |ssed by |\TeX\@@.|
|00000770| 20 54 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 64 | The res|ulting d|
|00000780| 6f 63 75 6d 65 6e 74 20 | 69 6e 63 6c 75 64 65 64 |ocument |included|
|00000790| 20 61 20 76 61 72 69 65 | 74 79 20 6f 66 0a 61 75 | a varie|ty of.au|
|000007a0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 67 65 6e 65 |tomatica|lly gene|
|000007b0| 72 61 74 65 64 20 69 6e | 64 69 63 65 73 20 61 6e |rated in|dices an|
|000007c0| 64 20 63 72 6f 73 73 2d | 72 65 66 65 72 65 6e 63 |d cross-|referenc|
|000007d0| 65 73 20 74 68 61 74 20 | 6d 61 64 65 20 69 74 20 |es that |made it |
|000007e0| 6d 75 63 68 0a 65 61 73 | 69 65 72 20 74 6f 20 6e |much.eas|ier to n|
|000007f0| 61 76 69 67 61 74 65 20 | 74 68 65 20 63 6f 64 65 |avigate |the code|
|00000800| 2e 20 41 64 64 69 74 69 | 6f 6e 61 6c 6c 79 2c 20 |. Additi|onally, |
|00000810| 61 6c 6c 20 6f 66 20 74 | 68 65 20 63 6f 64 65 20 |all of t|he code |
|00000820| 73 65 63 74 69 6f 6e 73 | 0a 77 65 72 65 20 61 75 |sections|.were au|
|00000830| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 70 72 65 74 |tomatica|lly pret|
|00000840| 74 79 20 70 72 69 6e 74 | 65 64 2c 20 72 65 73 75 |ty print|ed, resu|
|00000850| 6c 74 69 6e 67 20 69 6e | 20 61 20 71 75 69 74 65 |lting in| a quite|
|00000860| 20 69 6d 70 72 65 73 73 | 69 76 65 0a 64 6f 63 75 | impress|ive.docu|
|00000870| 6d 65 6e 74 2e 20 0a 0a | 4b 6e 75 74 68 20 61 6c |ment. ..|Knuth al|
|00000880| 73 6f 20 77 72 6f 74 65 | 20 74 68 65 20 70 72 6f |so wrote| the pro|
|00000890| 67 72 61 6d 73 20 66 6f | 72 20 5c 54 65 58 5c 20 |grams fo|r \TeX\ |
|000008a0| 61 6e 64 20 7b 5c 73 6d | 61 6c 6c 5c 73 66 20 4d |and {\sm|all\sf M|
|000008b0| 45 54 41 46 4f 4e 54 7d | 0a 65 6e 74 69 72 65 6c |ETAFONT}|.entirel|
|000008c0| 79 20 69 6e 20 5c 76 65 | 72 62 7c 57 45 42 7c 2c |y in \ve|rb|WEB|,|
|000008d0| 20 65 76 65 6e 74 75 61 | 6c 6c 79 20 70 75 62 6c | eventua|lly publ|
|000008e0| 69 73 68 69 6e 67 20 74 | 68 65 6d 20 69 6e 20 62 |ishing t|hem in b|
|000008f0| 6f 6f 6b 0a 66 6f 72 6d | 7e 5c 63 69 74 65 7b 74 |ook.form|~\cite{t|
|00000900| 65 78 3a 70 72 6f 67 72 | 61 6d 2c 6d 65 74 61 66 |ex:progr|am,metaf|
|00000910| 6f 6e 74 3a 70 72 6f 67 | 72 61 6d 7d 2e 20 54 68 |ont:prog|ram}. Th|
|00000920| 65 73 65 20 61 72 65 20 | 70 72 6f 62 61 62 6c 79 |ese are |probably|
|00000930| 20 74 68 65 0a 6c 61 72 | 67 65 73 74 20 70 72 6f | the.lar|gest pro|
|00000940| 67 72 61 6d 73 20 65 76 | 65 72 20 70 75 62 6c 69 |grams ev|er publi|
|00000950| 73 68 65 64 20 69 6e 20 | 61 20 72 65 61 64 61 62 |shed in |a readab|
|00000960| 6c 65 20 66 6f 72 6d 2e | 0a 0a 49 6e 73 70 69 72 |le form.|..Inspir|
|00000970| 65 64 20 62 79 20 4b 6e | 75 74 68 27 73 20 65 78 |ed by Kn|uth's ex|
|00000980| 61 6d 70 6c 65 2c 20 6d | 61 6e 79 20 70 65 6f 70 |ample, m|any peop|
|00000990| 6c 65 20 68 61 76 65 20 | 65 78 70 65 72 69 6d 65 |le have |experime|
|000009a0| 6e 74 65 64 20 77 69 74 | 68 0a 5c 76 65 72 62 7c |nted wit|h.\verb||
|000009b0| 57 45 42 7c 5c 40 40 2e | 20 53 6f 6d 65 20 70 65 |WEB|\@@.| Some pe|
|000009c0| 6f 70 6c 65 20 68 61 76 | 65 20 65 76 65 6e 20 62 |ople hav|e even b|
|000009d0| 75 69 6c 74 20 77 65 62 | 2d 6c 69 6b 65 20 74 6f |uilt web|-like to|
|000009e0| 6f 6c 73 20 66 6f 72 20 | 74 68 65 69 72 0a 6f 77 |ols for |their.ow|
|000009f0| 6e 20 66 61 76 6f 72 69 | 74 65 20 63 6f 6d 62 69 |n favori|te combi|
|00000a00| 6e 61 74 69 6f 6e 73 20 | 6f 66 20 70 72 6f 67 72 |nations |of progr|
|00000a10| 61 6d 6d 69 6e 67 20 6c | 61 6e 67 75 61 67 65 20 |amming l|anguage |
|00000a20| 61 6e 64 20 74 79 70 65 | 73 65 74 74 69 6e 67 0a |and type|setting.|
|00000a30| 6c 61 6e 67 75 61 67 65 | 2e 20 46 6f 72 20 65 78 |language|. For ex|
|00000a40| 61 6d 70 6c 65 2c 20 5c | 76 65 72 62 7c 43 57 45 |ample, \|verb|CWE|
|00000a50| 42 7c 2c 20 4b 6e 75 74 | 68 27 73 20 63 75 72 72 |B|, Knut|h's curr|
|00000a60| 65 6e 74 20 73 79 73 74 | 65 6d 20 6f 66 20 63 68 |ent syst|em of ch|
|00000a70| 6f 69 63 65 2c 0a 77 6f | 72 6b 73 20 77 69 74 68 |oice,.wo|rks with|
|00000a80| 20 61 20 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 20 6f | a combi|nation o|
|00000a90| 66 20 43 20 28 6f 72 20 | 43 2b 2b 29 20 61 6e 64 |f C (or |C++) and|
|00000aa0| 20 5c 54 65 58 7e 5c 63 | 69 74 65 7b 6c 65 76 79 | \TeX~\c|ite{levy|
|00000ab0| 3a 39 30 7d 2e 0a 41 6e | 6f 74 68 65 72 20 73 79 |:90}..An|other sy|
|00000ac0| 73 74 65 6d 2c 20 46 75 | 6e 6e 65 6c 57 65 62 2c |stem, Fu|nnelWeb,|
|00000ad0| 20 69 73 20 69 6e 64 65 | 70 65 6e 64 65 6e 74 20 | is inde|pendent |
|00000ae0| 6f 66 20 61 6e 79 20 70 | 72 6f 67 72 61 6d 6d 69 |of any p|rogrammi|
|00000af0| 6e 67 20 6c 61 6e 67 75 | 61 67 65 0a 61 6e 64 20 |ng langu|age.and |
|00000b00| 6f 6e 6c 79 20 6d 69 6c | 64 6c 79 20 64 65 70 65 |only mil|dly depe|
|00000b10| 6e 64 65 6e 74 20 6f 6e | 20 5c 54 65 58 7e 5c 63 |ndent on| \TeX~\c|
|00000b20| 69 74 65 7b 66 75 6e 6e | 65 6c 77 65 62 7d 2e 20 |ite{funn|elweb}. |
|00000b30| 49 6e 73 70 69 72 65 64 | 20 62 79 20 74 68 65 0a |Inspired| by the.|
|00000b40| 76 65 72 73 61 74 69 6c | 69 74 79 20 6f 66 20 46 |versatil|ity of F|
|00000b50| 75 6e 6e 65 6c 57 65 62 | 20 61 6e 64 20 62 79 20 |unnelWeb| and by |
|00000b60| 74 68 65 20 64 61 75 6e | 74 69 6e 67 20 73 69 7a |the daun|ting siz|
|00000b70| 65 20 6f 66 20 69 74 73 | 0a 64 6f 63 75 6d 65 6e |e of its|.documen|
|00000b80| 74 61 74 69 6f 6e 2c 20 | 49 20 64 65 63 69 64 65 |tation, |I decide|
|00000b90| 64 20 74 6f 20 77 72 69 | 74 65 20 6d 79 20 6f 77 |d to wri|te my ow|
|00000ba0| 6e 2c 20 76 65 72 79 20 | 73 69 6d 70 6c 65 2c 20 |n, very |simple, |
|00000bb0| 74 6f 6f 6c 20 66 6f 72 | 0a 6c 69 74 65 72 61 74 |tool for|.literat|
|00000bc0| 65 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2e 25 0a |e progra|mming.%.|
|00000bd0| 5c 66 6f 6f 74 6e 6f 74 | 65 7b 54 68 65 72 65 20 |\footnot|e{There |
|00000be0| 69 73 20 61 6e 6f 74 68 | 65 72 20 73 79 73 74 65 |is anoth|er syste|
|00000bf0| 6d 20 73 69 6d 69 6c 61 | 72 20 74 6f 0a 6d 69 6e |m simila|r to.min|
|00000c00| 65 2c 20 77 72 69 74 74 | 65 6e 20 62 79 20 4e 6f |e, writt|en by No|
|00000c10| 72 6d 61 6e 20 52 61 6d | 73 65 79 2c 20 63 61 6c |rman Ram|sey, cal|
|00000c20| 6c 65 64 20 7b 5c 65 6d | 20 6e 6f 77 65 62 7d 7e |led {\em| noweb}~|
|00000c30| 5c 63 69 74 65 7b 6e 6f | 77 65 62 7d 2e 20 49 74 |\cite{no|web}. It|
|00000c40| 0a 70 65 72 68 61 70 73 | 20 73 75 66 66 65 72 73 |.perhaps| suffers|
|00000c50| 20 66 72 6f 6d 20 62 65 | 69 6e 67 20 6f 76 65 72 | from be|ing over|
|00000c60| 6c 79 20 55 6e 69 78 2d | 64 65 70 65 6e 64 65 6e |ly Unix-|dependen|
|00000c70| 74 20 61 6e 64 20 72 65 | 71 75 69 72 69 6e 67 20 |t and re|quiring |
|00000c80| 73 65 76 65 72 61 6c 0a | 70 72 6f 67 72 61 6d 73 |several.|programs|
|00000c90| 20 74 6f 20 75 73 65 2e | 20 4f 6e 20 74 68 65 20 | to use.| On the |
|00000ca0| 6f 74 68 65 72 20 68 61 | 6e 64 2c 20 69 74 73 20 |other ha|nd, its |
|00000cb0| 63 6f 6d 6d 61 6e 64 20 | 73 79 6e 74 61 78 20 69 |command |syntax i|
|00000cc0| 73 20 76 65 72 79 20 6e | 69 63 65 2e 0a 49 6e 20 |s very n|ice..In |
|00000cd0| 61 6e 79 20 63 61 73 65 | 2c 20 6e 75 77 65 62 20 |any case|, nuweb |
|00000ce0| 63 65 72 74 61 69 6e 6c | 79 20 6f 77 65 73 20 69 |certainl|y owes i|
|00000cf0| 74 73 20 6e 61 6d 65 20 | 61 6e 64 20 61 20 6e 75 |ts name |and a nu|
|00000d00| 6d 62 65 72 20 6f 66 20 | 66 65 61 74 75 72 65 73 |mber of |features|
|00000d10| 20 74 6f 0a 68 69 73 20 | 69 6e 73 70 69 72 61 74 | to.his |inspirat|
|00000d20| 69 6f 6e 2e 7d 0a 0a 0a | 5c 73 65 63 74 69 6f 6e |ion.}...|\section|
|00000d30| 7b 4e 75 77 65 62 7d 0a | 0a 4e 75 77 65 62 20 77 |{Nuweb}.|.Nuweb w|
|00000d40| 6f 72 6b 73 20 77 69 74 | 68 20 61 6e 79 20 70 72 |orks wit|h any pr|
|00000d50| 6f 67 72 61 6d 6d 69 6e | 67 20 6c 61 6e 67 75 61 |ogrammin|g langua|
|00000d60| 67 65 20 61 6e 64 20 5c | 4c 61 54 65 58 7e 5c 63 |ge and \|LaTeX~\c|
|00000d70| 69 74 65 7b 6c 61 74 65 | 78 7d 2e 20 49 0a 77 61 |ite{late|x}. I.wa|
|00000d80| 6e 74 65 64 20 74 6f 20 | 75 73 65 20 5c 4c 61 54 |nted to |use \LaT|
|00000d90| 65 58 5c 20 62 65 63 61 | 75 73 65 20 69 74 20 73 |eX\ beca|use it s|
|00000da0| 75 70 70 6f 72 74 73 20 | 61 20 6d 75 6c 74 69 2d |upports |a multi-|
|00000db0| 6c 65 76 65 6c 20 73 65 | 63 74 69 6f 6e 69 6e 67 |level se|ctioning|
|00000dc0| 0a 73 63 68 65 6d 65 20 | 61 6e 64 20 68 61 73 20 |.scheme |and has |
|00000dd0| 66 61 63 69 6c 69 74 69 | 65 73 20 66 6f 72 20 64 |faciliti|es for d|
|00000de0| 72 61 77 69 6e 67 20 66 | 69 67 75 72 65 73 2e 20 |rawing f|igures. |
|00000df0| 49 20 77 61 6e 74 65 64 | 20 74 6f 20 62 65 20 61 |I wanted| to be a|
|00000e00| 62 6c 65 20 74 6f 0a 77 | 6f 72 6b 20 77 69 74 68 |ble to.w|ork with|
|00000e10| 20 61 72 62 69 74 72 61 | 72 79 20 70 72 6f 67 72 | arbitra|ry progr|
|00000e20| 61 6d 6d 69 6e 67 20 6c | 61 6e 67 75 61 67 65 73 |amming l|anguages|
|00000e30| 20 62 65 63 61 75 73 65 | 20 6d 79 20 66 72 69 65 | because| my frie|
|00000e40| 6e 64 73 20 61 6e 64 20 | 49 0a 77 72 69 74 65 20 |nds and |I.write |
|00000e50| 70 72 6f 67 72 61 6d 73 | 20 69 6e 20 6d 61 6e 79 |programs| in many|
|00000e60| 20 6c 61 6e 67 75 61 67 | 65 73 20 28 61 6e 64 20 | languag|es (and |
|00000e70| 73 6f 6d 65 74 69 6d 65 | 73 20 63 6f 6d 62 69 6e |sometime|s combin|
|00000e80| 61 74 69 6f 6e 73 20 6f | 66 0a 73 65 76 65 72 61 |ations o|f.severa|
|00000e90| 6c 20 6c 61 6e 67 75 61 | 67 65 73 29 2c 20 7b 5c |l langua|ges), {\|
|00000ea0| 65 6d 20 65 2e 67 2e 2c | 7d 20 43 2c 20 46 6f 72 |em e.g.,|} C, For|
|00000eb0| 74 72 61 6e 2c 20 43 2b | 2b 2c 20 79 61 63 63 2c |tran, C+|+, yacc,|
|00000ec0| 20 6c 65 78 2c 20 53 63 | 68 65 6d 65 2c 0a 61 73 | lex, Sc|heme,.as|
|00000ed0| 73 65 6d 62 6c 79 2c 20 | 50 6f 73 74 73 63 72 69 |sembly, |Postscri|
|00000ee0| 70 74 2c 20 61 6e 64 20 | 73 6f 20 66 6f 72 74 68 |pt, and |so forth|
|00000ef0| 2e 20 54 68 65 20 6e 65 | 65 64 20 74 6f 20 73 75 |. The ne|ed to su|
|00000f00| 70 70 6f 72 74 20 61 72 | 62 69 74 72 61 72 79 0a |pport ar|bitrary.|
|00000f10| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 6c 61 6e 67 |programm|ing lang|
|00000f20| 75 61 67 65 73 20 68 61 | 73 20 6d 61 6e 79 20 63 |uages ha|s many c|
|00000f30| 6f 6e 73 65 71 75 65 6e | 63 65 73 3a 0a 5c 62 65 |onsequen|ces:.\be|
|00000f40| 67 69 6e 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |gin{desc|ription}|
|00000f50| 0a 5c 69 74 65 6d 5b 4e | 6f 20 70 72 65 74 74 79 |.\item[N|o pretty|
|00000f60| 20 70 72 69 6e 74 69 6e | 67 5d 20 42 6f 74 68 20 | printin|g] Both |
|00000f70| 5c 76 65 72 62 7c 57 45 | 42 7c 20 61 6e 64 20 5c |\verb|WE|B| and \|
|00000f80| 76 65 72 62 7c 43 57 45 | 42 7c 20 61 72 65 20 61 |verb|CWE|B| are a|
|00000f90| 62 6c 65 20 74 6f 0a 20 | 20 70 72 65 74 74 79 20 |ble to. | pretty |
|00000fa0| 70 72 69 6e 74 20 74 68 | 65 20 63 6f 64 65 20 73 |print th|e code s|
|00000fb0| 65 63 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 69 72 |ections |of their|
|00000fc0| 20 64 6f 63 75 6d 65 6e | 74 73 20 62 65 63 61 75 | documen|ts becau|
|00000fd0| 73 65 20 74 68 65 79 0a | 20 20 75 6e 64 65 72 73 |se they.| unders|
|00000fe0| 74 61 6e 64 20 74 68 65 | 20 6c 61 6e 67 75 61 67 |tand the| languag|
|00000ff0| 65 20 77 65 6c 6c 20 65 | 6e 6f 75 67 68 20 74 6f |e well e|nough to|
|00001000| 20 70 61 72 73 65 20 69 | 74 2e 20 53 69 6e 63 65 | parse i|t. Since|
|00001010| 20 77 65 20 77 61 6e 74 | 20 74 6f 20 75 73 65 0a | we want| to use.|
|00001020| 20 20 7b 5c 65 6d 20 61 | 6e 79 5c 2f 7d 20 6c 61 | {\em a|ny\/} la|
|00001030| 6e 67 75 61 67 65 2c 20 | 77 65 27 76 65 20 67 6f |nguage, |we've go|
|00001040| 74 20 74 6f 20 61 62 61 | 6e 64 6f 6e 20 74 68 69 |t to aba|ndon thi|
|00001050| 73 20 66 65 61 74 75 72 | 65 2e 0a 5c 69 74 65 6d |s featur|e..\item|
|00001060| 5b 4e 6f 20 69 6e 64 65 | 78 20 6f 66 20 69 64 65 |[No inde|x of ide|
|00001070| 6e 74 69 66 69 65 72 73 | 5d 20 42 65 63 61 75 73 |ntifiers|] Becaus|
|00001080| 65 20 5c 76 65 72 62 7c | 57 45 42 7c 20 6b 6e 6f |e \verb||WEB| kno|
|00001090| 77 73 20 61 62 6f 75 74 | 20 50 61 73 63 61 6c 2c |ws about| Pascal,|
|000010a0| 0a 20 20 69 74 20 69 73 | 20 61 62 6c 65 20 74 6f |. it is| able to|
|000010b0| 20 63 6f 6e 73 74 72 75 | 63 74 20 61 6e 20 69 6e | constru|ct an in|
|000010c0| 64 65 78 20 6f 66 20 61 | 6c 6c 20 74 68 65 20 69 |dex of a|ll the i|
|000010d0| 64 65 6e 74 69 66 69 65 | 72 73 20 6f 63 63 75 72 |dentifie|rs occur|
|000010e0| 72 69 6e 67 20 69 6e 0a | 20 20 74 68 65 20 63 6f |ring in.| the co|
|000010f0| 64 65 20 73 65 63 74 69 | 6f 6e 73 20 28 66 69 6c |de secti|ons (fil|
|00001100| 74 65 72 69 6e 67 20 6f | 75 74 20 6b 65 79 77 6f |tering o|ut keywo|
|00001110| 72 64 73 20 61 6e 64 20 | 74 68 65 20 73 74 61 6e |rds and |the stan|
|00001120| 64 61 72 64 20 74 79 70 | 65 0a 20 20 69 64 65 6e |dard typ|e. iden|
|00001130| 74 69 66 69 65 72 73 29 | 2e 20 55 6e 66 6f 72 74 |tifiers)|. Unfort|
|00001140| 75 6e 61 74 65 6c 79 2c | 20 74 68 69 73 20 69 73 |unately,| this is|
|00001150| 6e 27 74 20 61 73 20 65 | 61 73 79 20 69 6e 20 6f |n't as e|asy in o|
|00001160| 75 72 20 63 61 73 65 2e | 20 57 65 20 64 6f 6e 27 |ur case.| We don'|
|00001170| 74 0a 20 20 6b 6e 6f 77 | 20 77 68 61 74 20 61 6e |t. know| what an|
|00001180| 20 69 64 65 6e 74 69 66 | 69 65 72 73 20 6c 6f 6f | identif|iers loo|
|00001190| 6b 73 20 6c 69 6b 65 20 | 69 6e 20 65 61 63 68 20 |ks like |in each |
|000011a0| 6c 61 6e 67 75 61 67 65 | 20 61 6e 64 20 77 65 20 |language| and we |
|000011b0| 63 65 72 74 61 69 6e 6c | 79 0a 20 20 64 6f 6e 27 |certainl|y. don'|
|000011c0| 74 20 6b 6e 6f 77 20 61 | 6c 6c 20 74 68 65 20 6b |t know a|ll the k|
|000011d0| 65 79 77 6f 72 64 73 2e | 20 28 4f 6e 20 74 68 65 |eywords.| (On the|
|000011e0| 20 6f 74 68 65 72 20 68 | 61 6e 64 2c 20 73 65 65 | other h|and, see|
|000011f0| 20 74 68 65 20 65 6e 64 | 20 6f 66 0a 20 20 53 65 | the end| of. Se|
|00001200| 63 74 69 6f 6e 7e 31 2e | 33 29 0a 5c 65 6e 64 7b |ction~1.|3).\end{|
|00001210| 64 65 73 63 72 69 70 74 | 69 6f 6e 7d 0a 4f 66 20 |descript|ion}.Of |
|00001220| 63 6f 75 72 73 65 2c 20 | 77 65 27 76 65 20 67 6f |course, |we've go|
|00001230| 74 20 74 6f 20 68 61 76 | 65 20 73 6f 6d 65 20 63 |t to hav|e some c|
|00001240| 6f 6d 70 65 6e 73 61 74 | 69 6f 6e 20 66 6f 72 20 |ompensat|ion for |
|00001250| 6f 75 72 20 6c 6f 73 73 | 65 73 20 6f 72 20 74 68 |our loss|es or th|
|00001260| 65 0a 77 68 6f 6c 65 20 | 69 64 65 61 20 77 6f 75 |e.whole |idea wou|
|00001270| 6c 64 20 62 65 20 61 20 | 77 61 73 74 65 2e 20 48 |ld be a |waste. H|
|00001280| 65 72 65 20 61 72 65 20 | 74 68 65 20 61 64 76 61 |ere are |the adva|
|00001290| 6e 74 61 67 65 73 20 49 | 20 63 61 6e 20 73 65 65 |ntages I| can see|
|000012a0| 3a 0a 5c 62 65 67 69 6e | 7b 64 65 73 63 72 69 70 |:.\begin|{descrip|
|000012b0| 74 69 6f 6e 7d 0a 5c 69 | 74 65 6d 5b 53 69 6d 70 |tion}.\i|tem[Simp|
|000012c0| 6c 69 63 69 74 79 5d 20 | 54 68 65 20 6d 61 6a 6f |licity] |The majo|
|000012d0| 72 69 74 79 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d |rity of |the comm|
|000012e0| 61 6e 64 73 20 69 6e 20 | 5c 76 65 72 62 7c 57 45 |ands in |\verb|WE|
|000012f0| 42 7c 20 61 72 65 0a 20 | 20 63 6f 6e 63 65 72 6e |B| are. | concern|
|00001300| 65 64 20 77 69 74 68 20 | 63 6f 6e 74 72 6f 6c 20 |ed with |control |
|00001310| 6f 66 20 74 68 65 20 61 | 75 74 6f 6d 61 74 69 63 |of the a|utomatic|
|00001320| 20 70 72 65 74 74 79 20 | 70 72 69 6e 74 69 6e 67 | pretty |printing|
|00001330| 2e 20 53 69 6e 63 65 20 | 77 65 0a 20 20 64 6f 6e |. Since |we. don|
|00001340| 27 74 20 70 72 65 74 74 | 79 20 70 72 69 6e 74 2c |'t prett|y print,|
|00001350| 20 6d 61 6e 79 20 63 6f | 6d 6d 61 6e 64 73 20 61 | many co|mmands a|
|00001360| 72 65 20 65 6c 69 6d 69 | 6e 61 74 65 64 2e 20 41 |re elimi|nated. A|
|00001370| 20 66 75 72 74 68 65 72 | 20 73 65 74 20 6f 66 0a | further| set of.|
|00001380| 20 20 63 6f 6d 6d 61 6e | 64 73 20 69 73 20 73 75 | comman|ds is su|
|00001390| 62 73 75 6d 65 64 20 62 | 79 20 5c 4c 61 54 65 58 |bsumed b|y \LaTeX|
|000013a0| 5c 20 20 61 6e 64 20 6d | 61 79 20 61 6c 73 6f 20 |\ and m|ay also |
|000013b0| 62 65 20 65 6c 69 6d 69 | 6e 61 74 65 64 2e 20 41 |be elimi|nated. A|
|000013c0| 73 20 61 0a 20 20 72 65 | 73 75 6c 74 2c 20 6f 75 |s a. re|sult, ou|
|000013d0| 72 20 73 65 74 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |r set of| command|
|000013e0| 73 20 69 73 20 72 65 64 | 75 63 65 64 20 74 6f 20 |s is red|uced to |
|000013f0| 6f 6e 6c 79 20 66 6f 75 | 72 20 6d 65 6d 62 65 72 |only fou|r member|
|00001400| 73 20 28 65 78 70 6c 61 | 69 6e 65 64 0a 20 20 69 |s (expla|ined. i|
|00001410| 6e 20 74 68 65 20 6e 65 | 78 74 20 73 65 63 74 69 |n the ne|xt secti|
|00001420| 6f 6e 29 2e 20 54 68 69 | 73 20 73 69 6d 70 6c 69 |on). Thi|s simpli|
|00001430| 63 69 74 79 20 69 73 20 | 61 6c 73 6f 20 72 65 66 |city is |also ref|
|00001440| 6c 65 63 74 65 64 20 69 | 6e 0a 20 20 74 68 65 20 |lected i|n. the |
|00001450| 73 69 7a 65 20 6f 66 20 | 74 68 69 73 20 74 6f 6f |size of |this too|
|00001460| 6c 2c 20 77 68 69 63 68 | 20 69 73 20 71 75 69 74 |l, which| is quit|
|00001470| 65 20 61 20 62 69 74 20 | 73 6d 61 6c 6c 65 72 20 |e a bit |smaller |
|00001480| 74 68 61 6e 20 74 68 65 | 20 74 6f 6f 6c 73 0a 20 |than the| tools. |
|00001490| 20 75 73 65 64 20 77 69 | 74 68 20 6f 74 68 65 72 | used wi|th other|
|000014a0| 20 61 70 70 72 6f 61 63 | 68 65 73 2e 0a 5c 69 74 | approac|hes..\it|
|000014b0| 65 6d 5b 4e 6f 20 70 72 | 65 74 74 79 20 70 72 69 |em[No pr|etty pri|
|000014c0| 6e 74 69 6e 67 5d 20 45 | 76 65 72 79 6f 6e 65 20 |nting] E|veryone |
|000014d0| 64 69 73 61 67 72 65 65 | 73 20 61 62 6f 75 74 20 |disagree|s about |
|000014e0| 68 6f 77 20 74 68 65 69 | 72 20 63 6f 64 65 0a 20 |how thei|r code. |
|000014f0| 20 73 68 6f 75 6c 64 20 | 6c 6f 6f 6b 2c 20 73 6f | should |look, so|
|00001500| 20 61 75 74 6f 6d 61 74 | 69 63 20 66 6f 72 6d 61 | automat|ic forma|
|00001510| 74 74 69 6e 67 20 61 6e | 6e 6f 79 73 20 6d 61 6e |tting an|noys man|
|00001520| 79 20 70 65 6f 70 6c 65 | 2e 20 4f 6e 65 20 61 70 |y people|. One ap|
|00001530| 70 72 6f 61 63 68 0a 20 | 20 69 73 20 74 6f 20 70 |proach. | is to p|
|00001540| 72 6f 76 69 64 65 20 77 | 61 79 73 20 74 6f 20 63 |rovide w|ays to c|
|00001550| 6f 6e 74 72 6f 6c 20 74 | 68 65 20 66 6f 72 6d 61 |ontrol t|he forma|
|00001560| 74 74 69 6e 67 2e 20 4f | 75 72 20 61 70 70 72 6f |tting. O|ur appro|
|00001570| 61 63 68 20 69 73 0a 20 | 20 73 69 6d 70 6c 65 72 |ach is. | simpler|
|00001580| 2d 2d 2d 77 65 20 70 65 | 72 66 6f 72 6d 20 6e 6f |---we pe|rform no|
|00001590| 20 61 75 74 6f 6d 61 74 | 69 63 20 66 6f 72 6d 61 | automat|ic forma|
|000015a0| 74 74 69 6e 67 20 61 6e | 64 20 74 68 65 72 65 66 |tting an|d theref|
|000015b0| 6f 72 65 20 61 6c 6c 6f | 77 20 74 68 65 0a 20 20 |ore allo|w the. |
|000015c0| 70 72 6f 67 72 61 6d 6d | 65 72 20 63 6f 6d 70 6c |programm|er compl|
|000015d0| 65 74 65 20 63 6f 6e 74 | 72 6f 6c 20 6f 66 20 63 |ete cont|rol of c|
|000015e0| 6f 64 65 20 6c 61 79 6f | 75 74 2e 0a 5c 69 74 65 |ode layo|ut..\ite|
|000015f0| 6d 5b 43 6f 6e 74 72 6f | 6c 5d 20 57 65 20 61 6c |m[Contro|l] We al|
|00001600| 73 6f 20 6f 66 66 65 72 | 20 74 68 65 20 70 72 6f |so offer| the pro|
|00001610| 67 72 61 6d 6d 65 72 20 | 63 6f 6d 70 6c 65 74 65 |grammer |complete|
|00001620| 20 63 6f 6e 74 72 6f 6c | 20 6f 66 20 74 68 65 0a | control| of the.|
|00001630| 20 20 6c 61 79 6f 75 74 | 20 6f 66 20 68 69 73 20 | layout| of his |
|00001640| 6f 75 74 70 75 74 20 66 | 69 6c 65 73 20 28 74 68 |output f|iles (th|
|00001650| 65 20 66 69 6c 65 73 20 | 67 65 6e 65 72 61 74 65 |e files |generate|
|00001660| 64 20 64 75 72 69 6e 67 | 20 74 61 6e 67 6c 69 6e |d during| tanglin|
|00001670| 67 29 2e 20 4f 66 0a 20 | 20 63 6f 75 72 73 65 2c |g). Of. | course,|
|00001680| 20 74 68 69 73 20 69 73 | 20 65 73 73 65 6e 74 69 | this is| essenti|
|00001690| 61 6c 20 66 6f 72 20 6c | 61 6e 67 75 61 67 65 73 |al for l|anguages|
|000016a0| 20 74 68 61 74 20 61 72 | 65 20 73 65 6e 73 69 74 | that ar|e sensit|
|000016b0| 69 76 65 20 74 6f 20 6c | 61 79 6f 75 74 3b 0a 20 |ive to l|ayout;. |
|000016c0| 20 62 75 74 20 69 74 20 | 69 73 20 61 6c 73 6f 20 | but it |is also |
|000016d0| 69 6d 70 6f 72 74 61 6e | 74 20 69 6e 20 6d 61 6e |importan|t in man|
|000016e0| 79 20 70 72 61 63 74 69 | 63 61 6c 20 73 69 74 75 |y practi|cal situ|
|000016f0| 61 74 69 6f 6e 73 2c 20 | 7b 5c 65 6d 20 65 2e 67 |ations, |{\em e.g|
|00001700| 2e 2c 7d 0a 20 20 64 65 | 62 75 67 67 69 6e 67 2e |.,}. de|bugging.|
|00001710| 0a 5c 69 74 65 6d 5b 53 | 70 65 65 64 5d 20 53 69 |.\item[S|peed] Si|
|00001720| 6e 63 65 20 6e 75 77 65 | 62 20 64 6f 65 73 6e 27 |nce nuwe|b doesn'|
|00001730| 74 20 64 6f 20 74 6f 20 | 6d 75 63 68 2c 20 74 68 |t do to |much, th|
|00001740| 65 20 6e 75 77 65 62 20 | 74 6f 6f 6c 20 72 75 6e |e nuweb |tool run|
|00001750| 73 0a 20 20 71 75 69 63 | 6b 6c 79 2e 20 49 20 63 |s. quic|kly. I c|
|00001760| 6f 6d 62 69 6e 65 20 74 | 68 65 20 66 75 6e 63 74 |ombine t|he funct|
|00001770| 69 6f 6e 73 20 6f 66 20 | 5c 76 65 72 62 7c 74 61 |ions of |\verb|ta|
|00001780| 6e 67 6c 65 7c 20 61 6e | 64 20 5c 76 65 72 62 7c |ngle| an|d \verb||
|00001790| 77 65 61 76 65 7c 20 69 | 6e 74 6f 0a 20 20 61 20 |weave| i|nto. a |
|000017a0| 73 69 6e 67 6c 65 20 70 | 72 6f 67 72 61 6d 20 74 |single p|rogram t|
|000017b0| 68 61 74 20 70 65 72 66 | 6f 72 6d 73 20 62 6f 74 |hat perf|orms bot|
|000017c0| 68 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 74 20 6f |h functi|ons at o|
|000017d0| 6e 63 65 2e 0a 5c 69 74 | 65 6d 5b 50 61 67 65 20 |nce..\it|em[Page |
|000017e0| 6e 75 6d 62 65 72 73 5d | 20 49 6e 73 70 69 72 65 |numbers]| Inspire|
|000017f0| 64 20 62 79 20 74 68 65 | 20 65 78 61 6d 70 6c 65 |d by the| example|
|00001800| 20 6f 66 20 6e 6f 77 65 | 62 2c 20 6e 75 77 65 62 | of nowe|b, nuweb|
|00001810| 20 72 65 66 65 72 73 20 | 74 6f 0a 20 20 61 6c 6c | refers |to. all|
|00001820| 20 73 63 72 61 70 73 20 | 62 79 20 70 61 67 65 20 | scraps |by page |
|00001830| 6e 75 6d 62 65 72 20 74 | 6f 20 73 69 6d 70 6c 69 |number t|o simpli|
|00001840| 66 79 20 6e 61 76 69 67 | 61 74 69 6f 6e 2e 20 49 |fy navig|ation. I|
|00001850| 66 20 74 68 65 72 65 20 | 61 72 65 0a 20 20 6d 75 |f there |are. mu|
|00001860| 6c 74 69 70 6c 65 20 73 | 63 72 61 70 73 20 6f 6e |ltiple s|craps on|
|00001870| 20 61 20 70 61 67 65 20 | 28 73 61 79 20 70 61 67 | a page |(say pag|
|00001880| 65 7e 31 37 29 2c 20 74 | 68 65 79 20 61 72 65 20 |e~17), t|hey are |
|00001890| 64 69 73 74 69 6e 67 75 | 69 73 68 65 64 20 62 79 |distingu|ished by|
|000018a0| 0a 20 20 6c 6f 77 65 72 | 2d 63 61 73 65 20 6c 65 |. lower|-case le|
|000018b0| 74 74 65 72 73 20 28 7b | 5c 65 6d 20 65 2e 67 2e |tters ({|\em e.g.|
|000018c0| 2c 7d 20 31 37 61 2c 20 | 31 37 62 2c 20 61 6e 64 |,} 17a, |17b, and|
|000018d0| 20 73 6f 20 66 6f 72 74 | 68 29 2e 0a 5c 69 74 65 | so fort|h)..\ite|
|000018e0| 6d 5b 4d 75 6c 74 69 70 | 6c 65 20 66 69 6c 65 20 |m[Multip|le file |
|000018f0| 6f 75 74 70 75 74 5d 20 | 54 68 65 20 70 72 6f 67 |output] |The prog|
|00001900| 72 61 6d 6d 65 72 20 6d | 61 79 20 73 70 65 63 69 |rammer m|ay speci|
|00001910| 66 79 20 6d 6f 72 65 20 | 74 68 61 6e 20 6f 6e 65 |fy more |than one|
|00001920| 0a 20 20 6f 75 74 70 75 | 74 20 66 69 6c 65 20 69 |. outpu|t file i|
|00001930| 6e 20 61 20 73 69 6e 67 | 6c 65 20 6e 75 77 65 62 |n a sing|le nuweb|
|00001940| 20 66 69 6c 65 2e 20 54 | 68 69 73 20 69 73 20 72 | file. T|his is r|
|00001950| 65 71 75 69 72 65 64 20 | 77 68 65 6e 20 63 6f 6e |equired |when con|
|00001960| 73 74 72 75 63 74 69 6e | 67 0a 20 20 70 72 6f 67 |structin|g. prog|
|00001970| 72 61 6d 73 20 69 6e 20 | 61 20 63 6f 6d 62 69 6e |rams in |a combin|
|00001980| 61 74 69 6f 6e 20 6f 66 | 20 6c 61 6e 67 75 61 67 |ation of| languag|
|00001990| 65 73 20 28 73 61 79 2c | 20 46 6f 72 74 72 61 6e |es (say,| Fortran|
|000019a0| 20 61 6e 64 20 43 29 5c | 40 40 2e 20 49 74 27 73 | and C)\|@@. It's|
|000019b0| 20 61 6c 73 6f 0a 20 20 | 61 6e 20 61 64 76 61 6e | also. |an advan|
|000019c0| 74 61 67 65 20 77 68 65 | 6e 20 63 6f 6e 73 74 72 |tage whe|n constr|
|000019d0| 75 63 74 69 6e 67 20 76 | 65 72 79 20 6c 61 72 67 |ucting v|ery larg|
|000019e0| 65 20 70 72 6f 67 72 61 | 6d 73 20 74 68 61 74 20 |e progra|ms that |
|000019f0| 77 6f 75 6c 64 20 72 65 | 71 75 69 72 65 0a 20 20 |would re|quire. |
|00001a00| 61 20 6c 6f 74 20 6f 66 | 20 63 6f 6d 70 69 6c 65 |a lot of| compile|
|00001a10| 20 74 69 6d 65 2e 0a 5c | 65 6e 64 7b 64 65 73 63 | time..\|end{desc|
|00001a20| 72 69 70 74 69 6f 6e 7d | 0a 54 68 69 73 20 6c 61 |ription}|.This la|
|00001a30| 73 74 20 70 6f 69 6e 74 | 20 69 73 20 76 65 72 79 |st point| is very|
|00001a40| 20 69 6d 70 6f 72 74 61 | 6e 74 2e 20 42 79 20 61 | importa|nt. By a|
|00001a50| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 63 72 65 61 |llowing |the crea|
|00001a60| 74 69 6f 6e 20 6f 66 0a | 6d 75 6c 74 69 70 6c 65 |tion of.|multiple|
|00001a70| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 73 2c 20 77 | output |files, w|
|00001a80| 65 20 61 76 6f 69 64 20 | 74 68 65 20 6e 65 65 64 |e avoid |the need|
|00001a90| 20 66 6f 72 20 6d 6f 6e | 6f 6c 69 74 68 69 63 20 | for mon|olithic |
|00001aa0| 70 72 6f 67 72 61 6d 73 | 2e 0a 54 68 75 73 20 77 |programs|..Thus w|
|00001ab0| 65 20 73 75 70 70 6f 72 | 74 20 74 68 65 20 63 72 |e suppor|t the cr|
|00001ac0| 65 61 74 69 6f 6e 20 6f | 66 20 76 65 72 79 20 6c |eation o|f very l|
|00001ad0| 61 72 67 65 20 70 72 6f | 67 72 61 6d 73 20 62 79 |arge pro|grams by|
|00001ae0| 20 67 72 6f 75 70 73 20 | 6f 66 0a 70 65 6f 70 6c | groups |of.peopl|
|00001af0| 65 2e 20 0a 0a 41 20 66 | 75 72 74 68 65 72 20 72 |e. ..A f|urther r|
|00001b00| 65 64 75 63 74 69 6f 6e | 20 69 6e 20 63 6f 6d 70 |eduction| in comp|
|00001b10| 69 6c 61 74 69 6f 6e 20 | 74 69 6d 65 20 69 73 20 |ilation |time is |
|00001b20| 61 63 68 69 65 76 65 64 | 20 62 79 20 66 69 72 73 |achieved| by firs|
|00001b30| 74 0a 77 72 69 74 69 6e | 67 20 65 61 63 68 20 6f |t.writin|g each o|
|00001b40| 75 74 70 75 74 20 66 69 | 6c 65 20 74 6f 20 61 20 |utput fi|le to a |
|00001b50| 74 65 6d 70 6f 72 61 72 | 79 20 6c 6f 63 61 74 69 |temporar|y locati|
|00001b60| 6f 6e 2c 20 74 68 65 6e | 20 63 6f 6d 70 61 72 69 |on, then| compari|
|00001b70| 6e 67 20 74 68 65 0a 74 | 65 6d 70 6f 72 61 72 79 |ng the.t|emporary|
|00001b80| 20 66 69 6c 65 20 77 69 | 74 68 20 74 68 65 20 6f | file wi|th the o|
|00001b90| 6c 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |ld versi|on of th|
|00001ba0| 65 20 66 69 6c 65 2e 20 | 49 66 20 74 68 65 72 65 |e file. |If there|
|00001bb0| 20 69 73 20 6e 6f 0a 64 | 69 66 66 65 72 65 6e 63 | is no.d|ifferenc|
|00001bc0| 65 2c 20 74 68 65 20 74 | 65 6d 70 6f 72 61 72 79 |e, the t|emporary|
|00001bd0| 20 66 69 6c 65 20 63 61 | 6e 20 62 65 20 64 65 6c | file ca|n be del|
|00001be0| 65 74 65 64 2e 20 49 66 | 20 74 68 65 20 66 69 6c |eted. If| the fil|
|00001bf0| 65 73 20 64 69 66 66 65 | 72 2c 0a 74 68 65 20 6f |es diffe|r,.the o|
|00001c00| 6c 64 20 76 65 72 73 69 | 6f 6e 20 69 73 20 64 65 |ld versi|on is de|
|00001c10| 6c 65 74 65 64 20 61 6e | 64 20 74 68 65 20 74 65 |leted an|d the te|
|00001c20| 6d 70 6f 72 61 72 79 20 | 66 69 6c 65 20 72 65 6e |mporary |file ren|
|00001c30| 61 6d 65 64 2e 20 54 68 | 69 73 0a 61 70 70 72 6f |amed. Th|is.appro|
|00001c40| 61 63 68 20 77 6f 72 6b | 73 20 77 65 6c 6c 20 69 |ach work|s well i|
|00001c50| 6e 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 20 77 69 |n combin|ation wi|
|00001c60| 74 68 20 5c 76 65 72 62 | 7c 6d 61 6b 65 7c 20 28 |th \verb||make| (|
|00001c70| 6f 72 20 73 69 6d 69 6c | 61 72 20 74 6f 6f 6c 73 |or simil|ar tools|
|00001c80| 29 2c 0a 73 69 6e 63 65 | 20 5c 76 65 72 62 7c 6d |),.since| \verb|m|
|00001c90| 61 6b 65 7c 20 77 69 6c | 6c 20 61 76 6f 69 64 20 |ake| wil|l avoid |
|00001ca0| 72 65 63 6f 6d 70 69 6c | 69 6e 67 20 75 6e 74 6f |recompil|ing unto|
|00001cb0| 75 63 68 65 64 20 6f 75 | 74 70 75 74 20 66 69 6c |uched ou|tput fil|
|00001cc0| 65 73 2e 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |es...\su|bsection|
|00001cd0| 7b 4e 75 77 65 62 20 61 | 6e 64 20 48 54 4d 4c 7d |{Nuweb a|nd HTML}|
|00001ce0| 0a 0a 49 6e 20 61 64 64 | 69 74 69 6f 6e 20 74 6f |..In add|ition to|
|00001cf0| 20 70 72 6f 64 75 63 69 | 6e 67 20 7b 5c 4c 61 54 | produci|ng {\LaT|
|00001d00| 65 58 7d 20 73 6f 75 72 | 63 65 2c 20 6e 75 77 65 |eX} sour|ce, nuwe|
|00001d10| 62 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |b can be| used to|
|00001d20| 0a 67 65 6e 65 72 61 74 | 65 20 48 79 70 65 72 54 |.generat|e HyperT|
|00001d30| 65 78 74 20 4d 61 72 6b | 75 70 20 4c 61 6e 67 75 |ext Mark|up Langu|
|00001d40| 61 67 65 20 28 48 54 4d | 4c 29 2c 20 74 68 65 20 |age (HTM|L), the |
|00001d50| 6d 61 72 6b 75 70 20 6c | 61 6e 67 75 61 67 65 20 |markup l|anguage |
|00001d60| 75 73 65 64 20 62 79 0a | 74 68 65 20 57 6f 72 6c |used by.|the Worl|
|00001d70| 64 20 57 69 64 65 20 57 | 65 62 2e 20 20 48 54 4d |d Wide W|eb. HTM|
|00001d80| 4c 20 70 72 6f 76 69 64 | 65 73 20 68 79 70 65 72 |L provid|es hyper|
|00001d90| 74 65 78 74 20 6c 69 6e | 6b 73 2e 20 20 57 68 65 |text lin|ks. Whe|
|00001da0| 6e 20 61 20 48 54 4d 4c | 0a 64 6f 63 75 6d 65 6e |n a HTML|.documen|
|00001db0| 74 20 69 73 20 76 69 65 | 77 65 64 20 6f 6e 6c 69 |t is vie|wed onli|
|00001dc0| 6e 65 2c 20 61 20 75 73 | 65 72 20 63 61 6e 20 6e |ne, a us|er can n|
|00001dd0| 61 76 69 67 61 74 65 20 | 77 69 74 68 69 6e 20 74 |avigate |within t|
|00001de0| 68 65 20 64 6f 63 75 6d | 65 6e 74 20 62 79 0a 61 |he docum|ent by.a|
|00001df0| 63 74 69 76 61 74 69 6e | 67 20 74 68 65 20 6c 69 |ctivatin|g the li|
|00001e00| 6e 6b 73 2e 20 20 54 68 | 65 20 74 6f 6f 6c 73 20 |nks. Th|e tools |
|00001e10| 77 68 69 63 68 20 67 65 | 6e 65 72 61 74 65 20 48 |which ge|nerate H|
|00001e20| 54 4d 4c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |TML auto|maticall|
|00001e30| 79 0a 70 72 6f 64 75 63 | 65 20 68 79 70 65 72 74 |y.produc|e hypert|
|00001e40| 65 78 74 20 6c 69 6e 6b | 73 20 66 72 6f 6d 20 61 |ext link|s from a|
|00001e50| 20 6e 75 77 65 62 20 73 | 6f 75 72 63 65 2e 0a 0a | nuweb s|ource...|
|00001e60| 0a 5c 73 65 63 74 69 6f | 6e 7b 57 72 69 74 69 6e |.\sectio|n{Writin|
|00001e70| 67 20 4e 75 77 65 62 7d | 0a 0a 54 68 65 20 62 75 |g Nuweb}|..The bu|
|00001e80| 6c 6b 20 6f 66 20 61 20 | 6e 75 77 65 62 20 66 69 |lk of a |nuweb fi|
|00001e90| 6c 65 20 77 69 6c 6c 20 | 62 65 20 6f 72 64 69 6e |le will |be ordin|
|00001ea0| 61 72 79 20 5c 4c 61 54 | 65 58 5c 40 40 2e 20 49 |ary \LaT|eX\@@. I|
|00001eb0| 6e 20 66 61 63 74 2c 20 | 61 6e 79 0a 7b 5c 4c 61 |n fact, |any.{\La|
|00001ec0| 54 65 58 7d 20 66 69 6c | 65 20 63 61 6e 20 73 65 |TeX} fil|e can se|
|00001ed0| 72 76 65 20 61 73 20 69 | 6e 70 75 74 20 74 6f 20 |rve as i|nput to |
|00001ee0| 6e 75 77 65 62 20 61 6e | 64 20 77 69 6c 6c 20 62 |nuweb an|d will b|
|00001ef0| 65 20 73 69 6d 70 6c 79 | 20 63 6f 70 69 65 64 0a |e simply| copied.|
|00001f00| 74 68 72 6f 75 67 68 20 | 75 6e 63 68 61 6e 67 65 |through |unchange|
|00001f10| 64 20 74 6f 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |d to the| documen|
|00001f20| 74 61 74 69 6f 6e 20 66 | 69 6c 65 2d 2d 2d 75 6e |tation f|ile---un|
|00001f30| 6c 65 73 73 20 61 20 6e | 75 77 65 62 20 63 6f 6d |less a n|uweb com|
|00001f40| 6d 61 6e 64 0a 69 73 20 | 64 69 73 63 6f 76 65 72 |mand.is |discover|
|00001f50| 65 64 2e 20 41 6c 6c 20 | 6e 75 77 65 62 20 63 6f |ed. All |nuweb co|
|00001f60| 6d 6d 61 6e 64 73 20 62 | 65 67 69 6e 20 77 69 74 |mmands b|egin wit|
|00001f70| 68 20 61 6e 20 60 60 61 | 74 2d 73 69 67 6e 27 27 |h an ``a|t-sign''|
|00001f80| 0a 28 5c 76 65 72 62 7c | 40 40 7c 29 2e 20 20 54 |.(\verb||@@|). T|
|00001f90| 68 65 72 65 66 6f 72 65 | 2c 20 61 20 66 69 6c 65 |herefore|, a file|
|00001fa0| 20 77 69 74 68 6f 75 74 | 20 61 74 2d 73 69 67 6e | without| at-sign|
|00001fb0| 73 20 77 69 6c 6c 20 62 | 65 20 63 6f 70 69 65 64 |s will b|e copied|
|00001fc0| 0a 75 6e 63 68 61 6e 67 | 65 64 2e 20 20 4e 75 77 |.unchang|ed. Nuw|
|00001fd0| 65 62 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |eb comma|nds are |
|00001fe0| 75 73 65 64 20 74 6f 20 | 73 70 65 63 69 66 79 20 |used to |specify |
|00001ff0| 7b 5c 65 6d 20 6f 75 74 | 70 75 74 20 66 69 6c 65 |{\em out|put file|
|00002000| 73 2c 7d 0a 64 65 66 69 | 6e 65 20 7b 5c 65 6d 20 |s,}.defi|ne {\em |
|00002010| 6d 61 63 72 6f 73 2c 7d | 20 61 6e 64 20 64 65 6c |macros,}| and del|
|00002020| 69 6d 69 74 20 7b 5c 65 | 6d 20 73 63 72 61 70 73 |imit {\e|m scraps|
|00002030| 7d 2e 20 54 68 65 73 65 | 20 61 72 65 20 74 68 65 |}. These| are the|
|00002040| 20 62 61 73 69 63 0a 66 | 65 61 74 75 72 65 73 20 | basic.f|eatures |
|00002050| 6f 66 20 69 6e 74 65 72 | 65 73 74 20 74 6f 20 74 |of inter|est to t|
|00002060| 68 65 20 6e 75 77 65 62 | 20 74 6f 6f 6c 2d 2d 2d |he nuweb| tool---|
|00002070| 61 6c 6c 20 65 6c 73 65 | 20 69 73 20 73 69 6d 70 |all else| is simp|
|00002080| 6c 79 20 74 65 78 74 20 | 74 6f 20 62 65 0a 63 6f |ly text |to be.co|
|00002090| 70 69 65 64 20 74 6f 20 | 74 68 65 20 64 6f 63 75 |pied to |the docu|
|000020a0| 6d 65 6e 74 61 74 69 6f | 6e 20 66 69 6c 65 2e 0a |mentatio|n file..|
|000020b0| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 54 68 65 |.\subsec|tion{The|
|000020c0| 20 4d 61 6a 6f 72 20 43 | 6f 6d 6d 61 6e 64 73 7d | Major C|ommands}|
|000020d0| 0a 0a 46 69 6c 65 73 20 | 61 6e 64 20 6d 61 63 72 |..Files |and macr|
|000020e0| 6f 73 20 61 72 65 20 64 | 65 66 69 6e 65 64 20 77 |os are d|efined w|
|000020f0| 69 74 68 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ith the |followin|
|00002100| 67 20 63 6f 6d 6d 61 6e | 64 73 3a 0a 5c 62 65 67 |g comman|ds:.\beg|
|00002110| 69 6e 7b 64 65 73 63 72 | 69 70 74 69 6f 6e 7d 0a |in{descr|iption}.|
|00002120| 5c 69 74 65 6d 5b 7b 5c | 74 74 20 40 40 6f 7d 20 |\item[{\|tt @@o} |
|00002130| 7b 5c 65 6d 20 66 69 6c | 65 2d 6e 61 6d 65 20 66 |{\em fil|e-name f|
|00002140| 6c 61 67 73 20 73 63 72 | 61 70 5c 2f 7d 5d 20 4f |lags scr|ap\/}] O|
|00002150| 75 74 70 75 74 20 61 20 | 66 69 6c 65 2e 20 54 68 |utput a |file. Th|
|00002160| 65 20 66 69 6c 65 20 6e | 61 6d 65 20 69 73 0a 20 |e file n|ame is. |
|00002170| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 62 79 20 77 | termina|ted by w|
|00002180| 68 69 74 65 73 70 61 63 | 65 2e 0a 5c 69 74 65 6d |hitespac|e..\item|
|00002190| 5b 7b 5c 74 74 20 40 40 | 64 7d 20 7b 5c 65 6d 20 |[{\tt @@|d} {\em |
|000021a0| 6d 61 63 72 6f 2d 6e 61 | 6d 65 20 73 63 72 61 70 |macro-na|me scrap|
|000021b0| 5c 2f 7d 5d 20 44 65 66 | 69 6e 65 20 61 20 6d 61 |\/}] Def|ine a ma|
|000021c0| 63 72 6f 2e 20 54 68 65 | 20 6d 61 63 72 6f 20 6e |cro. The| macro n|
|000021d0| 61 6d 65 0a 20 20 69 73 | 20 74 65 72 6d 69 6e 61 |ame. is| termina|
|000021e0| 74 65 64 20 62 79 20 61 | 20 72 65 74 75 72 6e 20 |ted by a| return |
|000021f0| 6f 72 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |or the b|eginning|
|00002200| 20 6f 66 20 61 20 73 63 | 72 61 70 2e 0a 5c 65 6e | of a sc|rap..\en|
|00002210| 64 7b 64 65 73 63 72 69 | 70 74 69 6f 6e 7d 0a 41 |d{descri|ption}.A|
|00002220| 20 73 70 65 63 69 66 69 | 63 20 66 69 6c 65 20 6d | specifi|c file m|
|00002230| 61 79 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |ay be sp|ecified |
|00002240| 73 65 76 65 72 61 6c 20 | 74 69 6d 65 73 2c 20 77 |several |times, w|
|00002250| 69 74 68 20 65 61 63 68 | 20 64 65 66 69 6e 69 74 |ith each| definit|
|00002260| 69 6f 6e 0a 62 65 69 6e | 67 20 77 72 69 74 74 65 |ion.bein|g writte|
|00002270| 6e 20 6f 75 74 2c 20 6f | 6e 65 20 61 66 74 65 72 |n out, o|ne after|
|00002280| 20 74 68 65 20 6f 74 68 | 65 72 2c 20 69 6e 20 74 | the oth|er, in t|
|00002290| 68 65 20 6f 72 64 65 72 | 20 74 68 65 79 20 61 70 |he order| they ap|
|000022a0| 70 65 61 72 2e 0a 54 68 | 65 20 64 65 66 69 6e 69 |pear..Th|e defini|
|000022b0| 74 69 6f 6e 73 20 6f 66 | 20 6d 61 63 72 6f 73 20 |tions of| macros |
|000022c0| 6d 61 79 20 62 65 20 73 | 69 6d 69 6c 61 72 6c 79 |may be s|imilarly|
|000022d0| 20 64 69 76 69 64 65 64 | 2e 0a 0a 5c 73 75 62 73 | divided|...\subs|
|000022e0| 75 62 73 65 63 74 69 6f | 6e 7b 53 63 72 61 70 73 |ubsectio|n{Scraps|
|000022f0| 7d 0a 0a 53 63 72 61 70 | 73 20 68 61 76 65 20 73 |}..Scrap|s have s|
|00002300| 70 65 63 69 66 69 63 20 | 62 65 67 69 6e 20 6d 61 |pecific |begin ma|
|00002310| 72 6b 65 72 73 20 61 6e | 64 20 65 6e 64 20 6d 61 |rkers an|d end ma|
|00002320| 72 6b 65 72 73 20 74 6f | 20 61 6c 6c 6f 77 20 70 |rkers to| allow p|
|00002330| 72 65 63 69 73 65 0a 63 | 6f 6e 74 72 6f 6c 20 6f |recise.c|ontrol o|
|00002340| 76 65 72 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ver the |contents|
|00002350| 20 61 6e 64 20 6c 61 79 | 6f 75 74 2e 20 4e 6f 74 | and lay|out. Not|
|00002360| 65 20 74 68 61 74 20 61 | 6e 79 20 61 6d 6f 75 6e |e that a|ny amoun|
|00002370| 74 20 6f 66 0a 77 68 69 | 74 65 73 70 61 63 65 20 |t of.whi|tespace |
|00002380| 28 69 6e 63 6c 75 64 69 | 6e 67 20 63 61 72 72 69 |(includi|ng carri|
|00002390| 61 67 65 20 72 65 74 75 | 72 6e 73 29 20 6d 61 79 |age retu|rns) may|
|000023a0| 20 61 70 70 65 61 72 20 | 62 65 74 77 65 65 6e 20 | appear |between |
|000023b0| 61 20 6e 61 6d 65 20 61 | 6e 64 0a 74 68 65 20 62 |a name a|nd.the b|
|000023c0| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 61 20 73 63 |eginning| of a sc|
|000023d0| 72 61 70 2e 0a 5c 62 65 | 67 69 6e 7b 64 65 73 63 |rap..\be|gin{desc|
|000023e0| 72 69 70 74 69 6f 6e 7d | 0a 5c 69 74 65 6d 5b 5c |ription}|.\item[\|
|000023f0| 74 74 20 40 40 5c 7b 7b | 5c 65 6d 20 61 6e 79 74 |tt @@\{{|\em anyt|
|00002400| 68 69 6e 67 5c 2f 7d 40 | 40 5c 7d 5d 20 77 68 65 |hing\/}@|@\}] whe|
|00002410| 72 65 20 74 68 65 20 73 | 63 72 61 70 20 62 6f 64 |re the s|crap bod|
|00002420| 79 20 69 6e 63 6c 75 64 | 65 73 20 65 76 65 72 79 |y includ|es every|
|00002430| 0a 20 20 63 68 61 72 61 | 63 74 65 72 20 69 6e 20 |. chara|cter in |
|00002440| 7b 5c 65 6d 20 61 6e 79 | 74 68 69 6e 67 5c 2f 7d |{\em any|thing\/}|
|00002450| 2d 2d 2d 61 6c 6c 20 74 | 68 65 20 62 6c 61 6e 6b |---all t|he blank|
|00002460| 73 2c 20 61 6c 6c 20 74 | 68 65 20 74 61 62 73 2c |s, all t|he tabs,|
|00002470| 20 61 6c 6c 20 74 68 65 | 0a 20 20 63 61 72 72 69 | all the|. carri|
|00002480| 61 67 65 20 72 65 74 75 | 72 6e 73 2e 0a 5c 65 6e |age retu|rns..\en|
|00002490| 64 7b 64 65 73 63 72 69 | 70 74 69 6f 6e 7d 0a 49 |d{descri|ption}.I|
|000024a0| 6e 73 69 64 65 20 61 20 | 73 63 72 61 70 2c 20 77 |nside a |scrap, w|
|000024b0| 65 20 6d 61 79 20 69 6e | 76 6f 6b 65 20 61 20 6d |e may in|voke a m|
|000024c0| 61 63 72 6f 2e 0a 5c 62 | 65 67 69 6e 7b 64 65 73 |acro..\b|egin{des|
|000024d0| 63 72 69 70 74 69 6f 6e | 7d 0a 5c 69 74 65 6d 5b |cription|}.\item[|
|000024e0| 5c 74 74 20 40 40 3c 7b | 5c 65 6d 20 6d 61 63 72 |\tt @@<{|\em macr|
|000024f0| 6f 2d 6e 61 6d 65 5c 2f | 7d 40 40 3e 5d 20 43 61 |o-name\/|}@@>] Ca|
|00002500| 75 73 65 73 20 74 68 65 | 20 6d 61 63 72 6f 20 0a |uses the| macro .|
|00002510| 20 20 7b 5c 65 6d 20 6d | 61 63 72 6f 2d 6e 61 6d | {\em m|acro-nam|
|00002520| 65 5c 2f 7d 20 74 6f 20 | 62 65 20 65 78 70 61 6e |e\/} to |be expan|
|00002530| 64 65 64 20 69 6e 6c 69 | 6e 65 20 61 73 20 74 68 |ded inli|ne as th|
|00002540| 65 20 63 6f 64 65 20 69 | 73 20 77 72 69 74 74 65 |e code i|s writte|
|00002550| 6e 20 6f 75 74 0a 20 20 | 74 6f 20 61 20 66 69 6c |n out. |to a fil|
|00002560| 65 2e 20 49 74 20 69 73 | 20 61 6e 20 65 72 72 6f |e. It is| an erro|
|00002570| 72 20 74 6f 20 73 70 65 | 63 69 66 79 20 72 65 63 |r to spe|cify rec|
|00002580| 75 72 73 69 76 65 20 6d | 61 63 72 6f 20 69 6e 76 |ursive m|acro inv|
|00002590| 6f 63 61 74 69 6f 6e 73 | 2e 0a 5c 65 6e 64 7b 64 |ocations|..\end{d|
|000025a0| 65 73 63 72 69 70 74 69 | 6f 6e 7d 0a 4e 6f 74 65 |escripti|on}.Note|
|000025b0| 20 74 68 61 74 20 6d 61 | 63 72 6f 20 6e 61 6d 65 | that ma|cro name|
|000025c0| 73 20 6d 61 79 20 62 65 | 20 61 62 62 72 65 76 69 |s may be| abbrevi|
|000025d0| 61 74 65 64 2c 20 65 69 | 74 68 65 72 20 64 75 72 |ated, ei|ther dur|
|000025e0| 69 6e 67 20 69 6e 76 6f | 63 61 74 69 6f 6e 20 6f |ing invo|cation o|
|000025f0| 72 0a 64 65 66 69 6e 69 | 74 69 6f 6e 2e 20 46 6f |r.defini|tion. Fo|
|00002600| 72 20 65 78 61 6d 70 6c | 65 2c 20 69 74 20 77 6f |r exampl|e, it wo|
|00002610| 75 6c 64 20 62 65 20 76 | 65 72 79 20 74 65 64 69 |uld be v|ery tedi|
|00002620| 6f 75 73 20 74 6f 20 68 | 61 76 65 20 74 6f 0a 72 |ous to h|ave to.r|
|00002630| 65 70 65 61 74 65 64 6c | 79 20 74 79 70 65 20 74 |epeatedl|y type t|
|00002640| 68 65 20 6d 61 63 72 6f | 20 6e 61 6d 65 0a 5c 62 |he macro| name.\b|
|00002650| 65 67 69 6e 7b 71 75 6f | 74 65 7d 0a 5c 76 65 72 |egin{quo|te}.\ver|
|00002660| 62 7c 40 40 64 20 43 68 | 65 63 6b 20 66 6f 72 20 |b|@@d Ch|eck for |
|00002670| 74 65 72 6d 69 6e 61 74 | 69 6e 67 20 61 74 2d 73 |terminat|ing at-s|
|00002680| 65 71 75 65 6e 63 65 20 | 61 6e 64 20 72 65 74 75 |equence |and retu|
|00002690| 72 6e 20 6e 61 6d 65 20 | 69 66 20 66 6f 75 6e 64 |rn name |if found|
|000026a0| 7c 0a 5c 65 6e 64 7b 71 | 75 6f 74 65 7d 0a 54 68 ||.\end{q|uote}.Th|
|000026b0| 65 72 65 66 6f 72 65 2c | 20 77 65 20 70 72 6f 76 |erefore,| we prov|
|000026c0| 69 64 65 20 61 20 6d 65 | 63 68 61 6e 69 73 6d 20 |ide a me|chanism |
|000026d0| 28 73 74 6f 6c 65 6e 20 | 66 72 6f 6d 20 4b 6e 75 |(stolen |from Knu|
|000026e0| 74 68 29 20 6f 66 20 69 | 6e 64 69 63 61 74 69 6e |th) of i|ndicatin|
|000026f0| 67 0a 61 62 62 72 65 76 | 69 61 74 65 64 20 6e 61 |g.abbrev|iated na|
|00002700| 6d 65 73 2e 0a 5c 62 65 | 67 69 6e 7b 71 75 6f 74 |mes..\be|gin{quot|
|00002710| 65 7d 0a 5c 76 65 72 62 | 7c 40 40 64 20 43 68 65 |e}.\verb||@@d Che|
|00002720| 63 6b 20 66 6f 72 20 74 | 65 72 6d 69 6e 61 74 69 |ck for t|erminati|
|00002730| 6e 67 2e 2e 2e 7c 0a 5c | 65 6e 64 7b 71 75 6f 74 |ng...|.\|end{quot|
|00002740| 65 7d 0a 42 61 73 69 63 | 61 6c 6c 79 2c 20 74 68 |e}.Basic|ally, th|
|00002750| 65 20 70 72 6f 67 72 61 | 6d 6d 65 72 20 6e 65 65 |e progra|mmer nee|
|00002760| 64 20 6f 6e 6c 79 20 74 | 79 70 65 20 65 6e 6f 75 |d only t|ype enou|
|00002770| 67 68 20 63 68 61 72 61 | 63 74 65 72 73 20 74 6f |gh chara|cters to|
|00002780| 20 75 6e 69 71 75 65 6c | 79 0a 69 64 65 6e 74 69 | uniquel|y.identi|
|00002790| 66 79 20 74 68 65 20 6d | 61 63 72 6f 20 6e 61 6d |fy the m|acro nam|
|000027a0| 65 2c 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |e, follo|wed by t|
|000027b0| 68 72 65 65 20 70 65 72 | 69 6f 64 73 2e 20 41 6e |hree per|iods. An|
|000027c0| 20 61 62 62 72 65 76 69 | 61 74 69 6f 6e 0a 6d 61 | abbrevi|ation.ma|
|000027d0| 79 20 65 76 65 6e 20 6f | 63 63 75 72 20 62 65 66 |y even o|ccur bef|
|000027e0| 6f 72 65 20 74 68 65 20 | 66 75 6c 6c 20 76 65 72 |ore the |full ver|
|000027f0| 73 69 6f 6e 3b 20 6e 75 | 77 65 62 20 73 69 6d 70 |sion; nu|web simp|
|00002800| 6c 79 20 70 72 65 73 65 | 72 76 65 73 20 74 68 65 |ly prese|rves the|
|00002810| 0a 6c 6f 6e 67 65 73 74 | 20 76 65 72 73 69 6f 6e |.longest| version|
|00002820| 20 6f 66 20 61 20 6d 61 | 63 72 6f 20 6e 61 6d 65 | of a ma|cro name|
|00002830| 2e 20 4e 6f 74 65 20 61 | 6c 73 6f 20 74 68 61 74 |. Note a|lso that|
|00002840| 20 62 6c 61 6e 6b 73 20 | 61 6e 64 20 74 61 62 73 | blanks |and tabs|
|00002850| 20 61 72 65 0a 69 6e 73 | 69 67 6e 69 66 69 63 61 | are.ins|ignifica|
|00002860| 6e 74 20 69 6e 20 61 20 | 6d 61 63 72 6f 20 6e 61 |nt in a |macro na|
|00002870| 6d 65 3b 20 61 6e 79 20 | 73 74 72 69 6e 67 20 6f |me; any |string o|
|00002880| 66 20 74 68 65 6d 20 61 | 72 65 20 72 65 70 6c 61 |f them a|re repla|
|00002890| 63 65 64 20 62 79 20 61 | 0a 73 69 6e 67 6c 65 20 |ced by a|.single |
|000028a0| 62 6c 61 6e 6b 2e 0a 0a | 57 68 65 6e 20 73 63 72 |blank...|When scr|
|000028b0| 61 70 73 20 61 72 65 20 | 77 72 69 74 74 65 6e 20 |aps are |written |
|000028c0| 74 6f 20 61 20 70 72 6f | 67 72 61 6d 20 66 69 6c |to a pro|gram fil|
|000028d0| 65 20 6f 72 20 61 20 64 | 6f 63 75 6d 65 6e 74 61 |e or a d|ocumenta|
|000028e0| 74 69 6f 6e 20 66 69 6c | 65 2c 20 74 61 62 73 20 |tion fil|e, tabs |
|000028f0| 61 72 65 0a 65 78 70 61 | 6e 64 65 64 20 69 6e 74 |are.expa|nded int|
|00002900| 6f 20 73 70 61 63 65 73 | 20 62 79 20 64 65 66 61 |o spaces| by defa|
|00002910| 75 6c 74 2e 20 43 75 72 | 72 65 6e 74 6c 79 2c 20 |ult. Cur|rently, |
|00002920| 49 20 61 73 73 75 6d 65 | 20 74 61 62 20 73 74 6f |I assume| tab sto|
|00002930| 70 73 20 61 72 65 20 73 | 65 74 0a 65 76 65 72 79 |ps are s|et.every|
|00002940| 20 65 69 67 68 74 20 63 | 68 61 72 61 63 74 65 72 | eight c|haracter|
|00002950| 73 2e 20 46 75 72 74 68 | 65 72 6d 6f 72 65 2c 20 |s. Furth|ermore, |
|00002960| 77 68 65 6e 20 61 20 6d | 61 63 72 6f 20 69 73 20 |when a m|acro is |
|00002970| 65 78 70 61 6e 64 65 64 | 20 69 6e 20 61 20 73 63 |expanded| in a sc|
|00002980| 72 61 70 2c 0a 74 68 65 | 20 62 6f 64 79 20 6f 66 |rap,.the| body of|
|00002990| 20 74 68 65 20 6d 61 63 | 72 6f 20 69 73 20 69 6e | the mac|ro is in|
|000029a0| 64 65 6e 74 65 64 20 74 | 6f 20 6d 61 74 63 68 20 |dented t|o match |
|000029b0| 74 68 65 20 69 6e 64 65 | 6e 74 61 74 69 6f 6e 20 |the inde|ntation |
|000029c0| 6f 66 20 74 68 65 0a 6d | 61 63 72 6f 20 69 6e 76 |of the.m|acro inv|
|000029d0| 6f 63 61 74 69 6f 6e 2e | 20 54 68 65 72 65 66 6f |ocation.| Therefo|
|000029e0| 72 65 2c 20 63 61 72 65 | 20 6d 75 73 74 20 62 65 |re, care| must be|
|000029f0| 20 74 61 6b 65 6e 20 77 | 69 74 68 20 6c 61 6e 67 | taken w|ith lang|
|00002a00| 75 61 67 65 73 20 0a 28 | 7b 5c 65 6d 20 65 2e 67 |uages .(|{\em e.g|
|00002a10| 2e 2c 7d 20 46 6f 72 74 | 72 61 6e 29 20 74 68 61 |.,} Fort|ran) tha|
|00002a20| 74 20 61 72 65 20 73 65 | 6e 73 69 74 69 76 65 20 |t are se|nsitive |
|00002a30| 74 6f 20 69 6e 64 65 6e | 74 61 74 69 6f 6e 2e 0a |to inden|tation..|
|00002a40| 54 68 65 73 65 20 64 65 | 66 61 75 6c 74 20 62 65 |These de|fault be|
|00002a50| 68 61 76 69 6f 72 73 20 | 6d 61 79 20 62 65 20 63 |haviors |may be c|
|00002a60| 68 61 6e 67 65 64 20 66 | 6f 72 20 65 61 63 68 20 |hanged f|or each |
|00002a70| 6f 75 74 70 75 74 20 66 | 69 6c 65 20 28 73 65 65 |output f|ile (see|
|00002a80| 0a 62 65 6c 6f 77 29 2e | 0a 0a 5c 73 75 62 73 75 |.below).|..\subsu|
|00002a90| 62 73 65 63 74 69 6f 6e | 7b 46 6c 61 67 73 7d 0a |bsection|{Flags}.|
|00002aa0| 0a 57 68 65 6e 20 64 65 | 66 69 6e 69 6e 67 20 61 |.When de|fining a|
|00002ab0| 6e 20 6f 75 74 70 75 74 | 20 66 69 6c 65 2c 20 74 |n output| file, t|
|00002ac0| 68 65 20 70 72 6f 67 72 | 61 6d 6d 65 72 20 68 61 |he progr|ammer ha|
|00002ad0| 73 20 74 68 65 20 6f 70 | 74 69 6f 6e 20 6f 66 20 |s the op|tion of |
|00002ae0| 75 73 69 6e 67 0a 66 6c | 61 67 73 20 74 6f 20 63 |using.fl|ags to c|
|00002af0| 6f 6e 74 72 6f 6c 20 6f | 75 74 70 75 74 20 6f 66 |ontrol o|utput of|
|00002b00| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 66 69 | a parti|cular fi|
|00002b10| 6c 65 2e 20 54 68 65 20 | 66 6c 61 67 73 20 61 72 |le. The |flags ar|
|00002b20| 65 20 69 6e 74 65 6e 64 | 65 64 0a 74 6f 20 6d 61 |e intend|ed.to ma|
|00002b30| 6b 65 20 6c 69 66 65 20 | 61 20 6c 69 74 74 6c 65 |ke life |a little|
|00002b40| 20 65 61 73 69 65 72 20 | 66 6f 72 20 70 72 6f 67 | easier |for prog|
|00002b50| 72 61 6d 6d 65 72 73 20 | 75 73 69 6e 67 20 63 65 |rammers |using ce|
|00002b60| 72 74 61 69 6e 20 6c 61 | 6e 67 75 61 67 65 73 2e |rtain la|nguages.|
|00002b70| 0a 54 68 65 79 20 69 6e | 74 72 6f 64 75 63 65 20 |.They in|troduce |
|00002b80| 6c 69 74 74 6c 65 20 6c | 61 6e 67 75 61 67 65 20 |little l|anguage |
|00002b90| 64 65 70 65 6e 64 65 6e | 63 65 73 3b 20 68 6f 77 |dependen|ces; how|
|00002ba0| 65 76 65 72 2c 20 74 68 | 65 79 20 64 6f 20 73 6f |ever, th|ey do so|
|00002bb0| 20 6f 6e 6c 79 0a 66 6f | 72 20 61 20 70 61 72 74 | only.fo|r a part|
|00002bc0| 69 63 75 6c 61 72 20 66 | 69 6c 65 2e 20 54 68 75 |icular f|ile. Thu|
|00002bd0| 73 20 69 74 20 69 73 20 | 73 74 69 6c 6c 20 65 61 |s it is |still ea|
|00002be0| 73 79 20 74 6f 20 6d 69 | 78 20 6c 61 6e 67 75 61 |sy to mi|x langua|
|00002bf0| 67 65 73 20 77 69 74 68 | 69 6e 20 61 0a 73 69 6e |ges with|in a.sin|
|00002c00| 67 6c 65 20 64 6f 63 75 | 6d 65 6e 74 2e 20 54 68 |gle docu|ment. Th|
|00002c10| 65 72 65 20 61 72 65 20 | 74 68 72 65 65 20 60 60 |ere are |three ``|
|00002c20| 70 65 72 2d 66 69 6c 65 | 27 27 20 66 6c 61 67 73 |per-file|'' flags|
|00002c30| 3a 0a 5c 62 65 67 69 6e | 7b 64 65 73 63 72 69 70 |:.\begin|{descrip|
|00002c40| 74 69 6f 6e 7d 0a 5c 69 | 74 65 6d 5b 5c 74 74 20 |tion}.\i|tem[\tt |
|00002c50| 2d 64 5d 20 46 6f 72 63 | 65 73 20 74 68 65 20 63 |-d] Forc|es the c|
|00002c60| 72 65 61 74 69 6f 6e 20 | 6f 66 20 5c 76 65 72 62 |reation |of \verb|
|00002c70| 7c 23 6c 69 6e 65 7c 20 | 64 69 72 65 63 74 69 76 ||#line| |directiv|
|00002c80| 65 73 20 69 6e 20 74 68 | 65 0a 20 20 6f 75 74 70 |es in th|e. outp|
|00002c90| 75 74 20 66 69 6c 65 2e | 20 54 68 65 73 65 20 61 |ut file.| These a|
|00002ca0| 72 65 20 75 73 65 66 75 | 6c 20 77 69 74 68 20 43 |re usefu|l with C|
|00002cb0| 20 28 61 6e 64 20 73 6f | 6d 65 74 69 6d 65 73 20 | (and so|metimes |
|00002cc0| 43 2b 2b 20 61 6e 64 20 | 46 6f 72 74 72 61 6e 29 |C++ and |Fortran)|
|00002cd0| 20 6f 6e 0a 20 20 6d 61 | 6e 79 20 55 6e 69 78 20 | on. ma|ny Unix |
|00002ce0| 73 79 73 74 65 6d 73 20 | 73 69 6e 63 65 20 74 68 |systems |since th|
|00002cf0| 65 79 20 63 61 75 73 65 | 20 74 68 65 20 63 6f 6d |ey cause| the com|
|00002d00| 70 69 6c 65 72 27 73 20 | 65 72 72 6f 72 20 6d 65 |piler's |error me|
|00002d10| 73 73 61 67 65 73 20 74 | 6f 0a 20 20 72 65 66 65 |ssages t|o. refe|
|00002d20| 72 20 74 6f 20 74 68 65 | 20 77 65 62 20 66 69 6c |r to the| web fil|
|00002d30| 65 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 74 68 |e rather| than th|
|00002d40| 65 20 6f 75 74 70 75 74 | 20 66 69 6c 65 2e 20 53 |e output| file. S|
|00002d50| 69 6d 69 6c 61 72 6c 79 | 2c 20 74 68 65 79 0a 20 |imilarly|, they. |
|00002d60| 20 61 6c 6c 6f 77 20 73 | 6f 75 72 63 65 20 64 65 | allow s|ource de|
|00002d70| 62 75 67 67 69 6e 67 20 | 69 6e 20 74 65 72 6d 73 |bugging |in terms|
|00002d80| 20 6f 66 20 74 68 65 20 | 77 65 62 20 66 69 6c 65 | of the |web file|
|00002d90| 2e 0a 5c 69 74 65 6d 5b | 5c 74 74 20 2d 69 5d 20 |..\item[|\tt -i] |
|00002da0| 53 75 70 70 72 65 73 73 | 65 73 20 74 68 65 20 69 |Suppress|es the i|
|00002db0| 6e 64 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 6d 61 |ndentati|on of ma|
|00002dc0| 63 72 6f 73 2e 20 54 68 | 61 74 20 69 73 2c 20 77 |cros. Th|at is, w|
|00002dd0| 68 65 6e 20 61 0a 20 20 | 6d 61 63 72 6f 20 69 73 |hen a. |macro is|
|00002de0| 20 65 78 70 61 6e 64 65 | 64 20 69 6e 20 61 20 73 | expande|d in a s|
|00002df0| 63 72 61 70 2c 20 69 74 | 20 77 69 6c 6c 20 7b 5c |crap, it| will {\|
|00002e00| 65 6d 20 6e 6f 74 5c 2f | 7d 20 62 65 20 69 6e 64 |em not\/|} be ind|
|00002e10| 65 6e 74 65 64 20 74 6f | 0a 20 20 6d 61 74 63 68 |ented to|. match|
|00002e20| 20 74 68 65 20 69 6e 64 | 65 6e 74 61 74 69 6f 6e | the ind|entation|
|00002e30| 20 6f 66 20 74 68 65 20 | 6d 61 63 72 6f 20 69 6e | of the |macro in|
|00002e40| 76 6f 63 61 74 69 6f 6e | 2e 20 54 68 69 73 20 66 |vocation|. This f|
|00002e50| 6c 61 67 20 77 6f 75 6c | 64 20 73 65 65 6d 0a 20 |lag woul|d seem. |
|00002e60| 20 6d 6f 73 74 20 75 73 | 65 66 75 6c 20 66 6f 72 | most us|eful for|
|00002e70| 20 46 6f 72 74 72 61 6e | 20 70 72 6f 67 72 61 6d | Fortran| program|
|00002e80| 6d 65 72 73 2e 0a 5c 69 | 74 65 6d 5b 5c 74 74 20 |mers..\i|tem[\tt |
|00002e90| 2d 74 5d 20 53 75 70 70 | 72 65 73 73 65 73 20 65 |-t] Supp|resses e|
|00002ea0| 78 70 61 6e 73 69 6f 6e | 20 6f 66 20 74 61 62 73 |xpansion| of tabs|
|00002eb0| 20 69 6e 20 74 68 65 20 | 6f 75 74 70 75 74 20 66 | in the |output f|
|00002ec0| 69 6c 65 2e 20 54 68 69 | 73 0a 20 20 66 65 61 74 |ile. Thi|s. feat|
|00002ed0| 75 72 65 20 73 65 65 6d | 73 20 69 6d 70 6f 72 74 |ure seem|s import|
|00002ee0| 61 6e 74 20 77 68 65 6e | 20 67 65 6e 65 72 61 74 |ant when| generat|
|00002ef0| 69 6e 67 20 5c 76 65 72 | 62 7c 6d 61 6b 65 7c 20 |ing \ver|b|make| |
|00002f00| 66 69 6c 65 73 2e 0a 5c | 65 6e 64 7b 64 65 73 63 |files..\|end{desc|
|00002f10| 72 69 70 74 69 6f 6e 7d | 0a 0a 0a 5c 73 75 62 73 |ription}|...\subs|
|00002f20| 65 63 74 69 6f 6e 7b 54 | 68 65 20 4d 69 6e 6f 72 |ection{T|he Minor|
|00002f30| 20 43 6f 6d 6d 61 6e 64 | 73 7d 0a 0a 57 65 20 68 | Command|s}..We h|
|00002f40| 61 76 65 20 74 77 6f 20 | 76 65 72 79 20 6c 6f 77 |ave two |very low|
|00002f50| 2d 6c 65 76 65 6c 20 75 | 74 69 6c 69 74 79 20 63 |-level u|tility c|
|00002f60| 6f 6d 6d 61 6e 64 73 20 | 74 68 61 74 20 6d 61 79 |ommands |that may|
|00002f70| 20 61 70 70 65 61 72 20 | 61 6e 79 77 68 65 72 65 | appear |anywhere|
|00002f80| 0a 69 6e 20 74 68 65 20 | 77 65 62 20 66 69 6c 65 |.in the |web file|
|00002f90| 2e 0a 5c 62 65 67 69 6e | 7b 64 65 73 63 72 69 70 |..\begin|{descrip|
|00002fa0| 74 69 6f 6e 7d 0a 5c 69 | 74 65 6d 5b 5c 74 74 20 |tion}.\i|tem[\tt |
|00002fb0| 40 40 40 40 5d 20 43 61 | 75 73 65 73 20 61 20 73 |@@@@] Ca|uses a s|
|00002fc0| 69 6e 67 6c 65 20 60 60 | 61 74 20 73 69 67 6e 27 |ingle ``|at sign'|
|00002fd0| 27 20 74 6f 20 62 65 20 | 63 6f 70 69 65 64 20 69 |' to be |copied i|
|00002fe0| 6e 74 6f 20 74 68 65 20 | 6f 75 74 70 75 74 2e 0a |nto the |output..|
|00002ff0| 5c 69 74 65 6d 5b 5c 74 | 74 20 40 40 69 20 7b 5c |\item[\t|t @@i {\|
|00003000| 65 6d 20 66 69 6c 65 2d | 6e 61 6d 65 5c 2f 7d 5d |em file-|name\/}]|
|00003010| 20 49 6e 63 6c 75 64 65 | 73 20 61 20 66 69 6c 65 | Include|s a file|
|00003020| 2e 20 49 6e 63 6c 75 64 | 65 73 20 6d 61 79 20 62 |. Includ|es may b|
|00003030| 65 0a 20 20 6e 65 73 74 | 65 64 2c 20 74 68 6f 75 |e. nest|ed, thou|
|00003040| 67 68 20 74 68 65 72 65 | 20 69 73 20 63 75 72 72 |gh there| is curr|
|00003050| 65 6e 74 6c 79 20 61 20 | 6c 69 6d 69 74 20 6f 66 |ently a |limit of|
|00003060| 20 31 30 7e 6c 65 76 65 | 6c 73 2e 20 54 68 65 20 | 10~leve|ls. The |
|00003070| 66 69 6c 65 20 6e 61 6d | 65 0a 20 20 73 68 6f 75 |file nam|e. shou|
|00003080| 6c 64 20 62 65 20 63 6f | 6d 70 6c 65 74 65 20 28 |ld be co|mplete (|
|00003090| 6e 6f 20 65 78 74 65 6e | 73 69 6f 6e 20 77 69 6c |no exten|sion wil|
|000030a0| 6c 20 62 65 20 61 70 70 | 65 6e 64 65 64 29 20 61 |l be app|ended) a|
|000030b0| 6e 64 20 73 68 6f 75 6c | 64 20 62 65 0a 20 20 74 |nd shoul|d be. t|
|000030c0| 65 72 6d 69 6e 61 74 65 | 64 20 62 79 20 61 20 63 |erminate|d by a c|
|000030d0| 61 72 72 69 61 67 65 20 | 72 65 74 75 72 6e 2e 0a |arriage |return..|
|000030e0| 5c 65 6e 64 7b 64 65 73 | 63 72 69 70 74 69 6f 6e |\end{des|cription|
|000030f0| 7d 0a 46 69 6e 61 6c 6c | 79 2c 20 74 68 65 72 65 |}.Finall|y, there|
|00003100| 20 61 72 65 20 74 68 72 | 65 65 20 63 6f 6d 6d 61 | are thr|ee comma|
|00003110| 6e 64 73 20 75 73 65 64 | 20 74 6f 20 63 72 65 61 |nds used| to crea|
|00003120| 74 65 20 69 6e 64 69 63 | 65 73 20 74 6f 20 74 68 |te indic|es to th|
|00003130| 65 20 6d 61 63 72 6f 0a | 6e 61 6d 65 73 2c 20 66 |e macro.|names, f|
|00003140| 69 6c 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 2c |ile defi|nitions,|
|00003150| 20 61 6e 64 20 75 73 65 | 72 2d 73 70 65 63 69 66 | and use|r-specif|
|00003160| 69 65 64 20 69 64 65 6e | 74 69 66 69 65 72 73 2e |ied iden|tifiers.|
|00003170| 0a 5c 62 65 67 69 6e 7b | 64 65 73 63 72 69 70 74 |.\begin{|descript|
|00003180| 69 6f 6e 7d 0a 5c 69 74 | 65 6d 5b 5c 74 74 20 40 |ion}.\it|em[\tt @|
|00003190| 40 66 5d 20 43 72 65 61 | 74 65 20 61 6e 20 69 6e |@f] Crea|te an in|
|000031a0| 64 65 78 20 6f 66 20 66 | 69 6c 65 20 6e 61 6d 65 |dex of f|ile name|
|000031b0| 73 2e 0a 5c 69 74 65 6d | 5b 5c 74 74 20 40 40 6d |s..\item|[\tt @@m|
|000031c0| 5d 20 43 72 65 61 74 65 | 20 61 6e 20 69 6e 64 65 |] Create| an inde|
|000031d0| 78 20 6f 66 20 6d 61 63 | 72 6f 20 6e 61 6d 65 2e |x of mac|ro name.|
|000031e0| 0a 5c 69 74 65 6d 5b 5c | 74 74 20 40 40 75 5d 20 |.\item[\|tt @@u] |
|000031f0| 43 72 65 61 74 65 20 61 | 6e 20 69 6e 64 65 78 20 |Create a|n index |
|00003200| 6f 66 20 75 73 65 72 2d | 73 70 65 63 69 66 69 65 |of user-|specifie|
|00003210| 64 20 69 64 65 6e 74 69 | 66 69 65 72 73 2e 0a 5c |d identi|fiers..\|
|00003220| 65 6e 64 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |end{desc|ription}|
|00003230| 0a 49 20 75 73 75 61 6c | 6c 79 20 70 75 74 20 74 |.I usual|ly put t|
|00003240| 68 65 73 65 20 69 6e 20 | 74 68 65 69 72 20 6f 77 |hese in |their ow|
|00003250| 6e 20 73 65 63 74 69 6f | 6e 0a 69 6e 20 74 68 65 |n sectio|n.in the|
|00003260| 20 5c 4c 61 54 65 58 5c | 20 64 6f 63 75 6d 65 6e | \LaTeX\| documen|
|00003270| 74 3b 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |t; for e|xample, |
|00003280| 73 65 65 20 43 68 61 70 | 74 65 72 7e 5c 72 65 66 |see Chap|ter~\ref|
|00003290| 7b 69 6e 64 69 63 65 73 | 7d 2e 0a 0a 49 64 65 6e |{indices|}...Iden|
|000032a0| 74 69 66 69 65 72 73 20 | 6d 75 73 74 20 62 65 20 |tifiers |must be |
|000032b0| 65 78 70 6c 69 63 69 74 | 6c 79 20 73 70 65 63 69 |explicit|ly speci|
|000032c0| 66 69 65 64 20 66 6f 72 | 20 69 6e 63 6c 75 73 69 |fied for| inclusi|
|000032d0| 6f 6e 20 69 6e 20 74 68 | 65 0a 5c 76 65 72 62 7c |on in th|e.\verb||
|000032e0| 40 40 75 7c 20 69 6e 64 | 65 78 2e 20 42 79 20 63 |@@u| ind|ex. By c|
|000032f0| 6f 6e 76 65 6e 74 69 6f | 6e 2c 20 65 61 63 68 20 |onventio|n, each |
|00003300| 69 64 65 6e 74 69 66 69 | 65 72 20 69 73 20 6d 61 |identifi|er is ma|
|00003310| 72 6b 65 64 20 61 74 20 | 74 68 65 0a 70 6f 69 6e |rked at |the.poin|
|00003320| 74 20 6f 66 20 69 74 73 | 20 64 65 66 69 6e 69 74 |t of its| definit|
|00003330| 69 6f 6e 3b 20 61 6c 6c | 20 72 65 66 65 72 65 6e |ion; all| referen|
|00003340| 63 65 73 20 74 6f 20 65 | 61 63 68 20 69 64 65 6e |ces to e|ach iden|
|00003350| 74 69 66 69 65 72 20 28 | 69 6e 73 69 64 65 0a 73 |tifier (|inside.s|
|00003360| 63 72 61 70 73 29 20 77 | 69 6c 6c 20 62 65 20 64 |craps) w|ill be d|
|00003370| 69 73 63 6f 76 65 72 65 | 64 20 61 75 74 6f 6d 61 |iscovere|d automa|
|00003380| 74 69 63 61 6c 6c 79 2e | 20 54 6f 20 60 60 6d 61 |tically.| To ``ma|
|00003390| 72 6b 27 27 20 61 6e 20 | 69 64 65 6e 74 69 66 69 |rk'' an |identifi|
|000033a0| 65 72 0a 66 6f 72 20 69 | 6e 63 6c 75 73 69 6f 6e |er.for i|nclusion|
|000033b0| 20 69 6e 20 74 68 65 20 | 69 6e 64 65 78 2c 20 77 | in the |index, w|
|000033c0| 65 20 6d 75 73 74 20 6d | 65 6e 74 69 6f 6e 20 69 |e must m|ention i|
|000033d0| 74 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |t at the| end of |
|000033e0| 61 20 73 63 72 61 70 2e | 0a 46 6f 72 20 65 78 61 |a scrap.|.For exa|
|000033f0| 6d 70 6c 65 2c 0a 5c 62 | 65 67 69 6e 7b 71 75 6f |mple,.\b|egin{quo|
|00003400| 74 65 7d 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |te}.\beg|in{verba|
|00003410| 74 69 6d 7d 0a 40 40 64 | 20 61 20 73 63 72 61 70 |tim}.@@d| a scrap|
|00003420| 20 40 40 7b 0a 4c 65 74 | 27 73 20 70 72 65 74 65 | @@{.Let|'s prete|
|00003430| 6e 64 20 77 65 27 72 65 | 20 64 65 63 6c 61 72 69 |nd we're| declari|
|00003440| 6e 67 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 73 |ng the v|ariables|
|00003450| 20 46 4f 4f 20 61 6e 64 | 20 42 41 52 0a 69 6e 73 | FOO and| BAR.ins|
|00003460| 69 64 65 20 74 68 69 73 | 20 73 63 72 61 70 2e 0a |ide this| scrap..|
|00003470| 40 40 7c 20 46 4f 4f 20 | 42 41 52 20 40 40 7d 0a |@@| FOO |BAR @@}.|
|00003480| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 5c |\end{ver|batim}.\|
|00003490| 65 6e 64 7b 71 75 6f 74 | 65 7d 0a 49 27 76 65 20 |end{quot|e}.I've |
|000034a0| 75 73 65 64 20 61 6c 70 | 68 61 62 65 74 69 63 20 |used alp|habetic |
|000034b0| 69 64 65 6e 74 69 66 69 | 65 72 73 20 69 6e 20 74 |identifi|ers in t|
|000034c0| 68 69 73 20 65 78 61 6d | 70 6c 65 2c 20 62 75 74 |his exam|ple, but|
|000034d0| 20 61 6e 79 20 73 74 72 | 69 6e 67 20 6f 66 0a 63 | any str|ing of.c|
|000034e0| 68 61 72 61 63 74 65 72 | 73 20 28 6e 6f 74 20 69 |haracter|s (not i|
|000034f0| 6e 63 6c 75 64 69 6e 67 | 20 77 68 69 74 65 73 70 |ncluding| whitesp|
|00003500| 61 63 65 20 6f 72 20 5c | 76 65 72 62 7c 40 40 7c |ace or \|verb|@@||
|00003510| 20 63 68 61 72 61 63 74 | 65 72 73 29 20 77 69 6c | charact|ers) wil|
|00003520| 6c 20 64 6f 2e 0a 54 68 | 65 72 65 66 6f 72 65 2c |l do..Th|erefore,|
|00003530| 20 69 74 27 73 20 70 6f | 73 73 69 62 6c 65 20 74 | it's po|ssible t|
|00003540| 6f 20 61 64 64 20 69 6e | 64 65 78 20 65 6e 74 72 |o add in|dex entr|
|00003550| 69 65 73 20 66 6f 72 20 | 74 68 69 6e 67 73 20 6c |ies for |things l|
|00003560| 69 6b 65 0a 5c 76 65 72 | 62 7c 3c 3c 3d 7c 20 69 |ike.\ver|b|<<=| i|
|00003570| 66 20 64 65 73 69 72 65 | 64 2e 20 41 6e 20 69 64 |f desire|d. An id|
|00003580| 65 6e 74 69 66 69 65 72 | 20 6d 61 79 20 62 65 20 |entifier| may be |
|00003590| 64 65 63 6c 61 72 65 64 | 20 69 6e 20 6d 6f 72 65 |declared| in more|
|000035a0| 20 74 68 61 6e 20 6f 6e | 65 0a 73 63 72 61 70 2e | than on|e.scrap.|
|000035b0| 0a 0a 49 6e 20 74 68 65 | 20 67 65 6e 65 72 61 74 |..In the| generat|
|000035c0| 65 64 20 69 6e 64 65 78 | 2c 20 65 61 63 68 20 69 |ed index|, each i|
|000035d0| 64 65 6e 74 69 66 69 65 | 72 20 61 70 70 65 61 72 |dentifie|r appear|
|000035e0| 73 20 77 69 74 68 20 61 | 20 6c 69 73 74 20 6f 66 |s with a| list of|
|000035f0| 20 61 6c 6c 20 74 68 65 | 0a 73 63 72 61 70 73 20 | all the|.scraps |
|00003600| 75 73 69 6e 67 20 61 6e | 64 20 64 65 66 69 6e 69 |using an|d defini|
|00003610| 6e 67 20 69 74 2c 20 77 | 68 65 72 65 20 74 68 65 |ng it, w|here the|
|00003620| 20 64 65 66 69 6e 69 6e | 67 20 73 63 72 61 70 73 | definin|g scraps|
|00003630| 20 61 72 65 0a 64 69 73 | 74 69 6e 67 75 69 73 68 | are.dis|tinguish|
|00003640| 65 64 20 62 79 20 75 6e | 64 65 72 6c 69 6e 69 6e |ed by un|derlinin|
|00003650| 67 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |g. Note |that the|
|00003660| 20 69 64 65 6e 74 69 66 | 69 65 72 20 64 6f 65 73 | identif|ier does|
|00003670| 6e 27 74 0a 61 63 74 75 | 61 6c 6c 79 20 68 61 76 |n't.actu|ally hav|
|00003680| 65 20 74 6f 20 61 70 70 | 65 61 72 20 69 6e 20 74 |e to app|ear in t|
|00003690| 68 65 20 64 65 66 69 6e | 69 6e 67 20 73 63 72 61 |he defin|ing scra|
|000036a0| 70 3b 20 69 74 20 6a 75 | 73 74 20 68 61 73 20 74 |p; it ju|st has t|
|000036b0| 6f 20 62 65 20 69 6e 0a | 74 68 65 20 6c 69 73 74 |o be in.|the list|
|000036c0| 20 6f 66 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 | of defi|nitions |
|000036d0| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 61 20 |at the e|nd of a |
|000036e0| 73 63 72 61 70 2e 0a 0a | 0a 5c 73 65 63 74 69 6f |scrap...|.\sectio|
|000036f0| 6e 7b 52 75 6e 6e 69 6e | 67 20 4e 75 77 65 62 7d |n{Runnin|g Nuweb}|
|00003700| 0a 0a 4e 75 77 65 62 20 | 69 73 20 69 6e 76 6f 6b |..Nuweb |is invok|
|00003710| 65 64 20 75 73 69 6e 67 | 20 74 68 65 20 66 6f 6c |ed using| the fol|
|00003720| 6c 6f 77 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 3a 0a |lowing c|ommand:.|
|00003730| 5c 62 65 67 69 6e 7b 71 | 75 6f 74 65 7d 0a 7b 5c |\begin{q|uote}.{\|
|00003740| 74 74 20 6e 75 77 65 62 | 7d 20 7b 5c 65 6d 20 66 |tt nuweb|} {\em f|
|00003750| 6c 61 67 73 20 66 69 6c | 65 2d 6e 61 6d 65 7d 5c |lags fil|e-name}\|
|00003760| 6c 64 6f 74 73 0a 5c 65 | 6e 64 7b 71 75 6f 74 65 |ldots.\e|nd{quote|
|00003770| 7d 0a 4f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 66 69 |}.One or| more fi|
|00003780| 6c 65 73 20 6d 61 79 20 | 62 65 20 70 72 6f 63 65 |les may |be proce|
|00003790| 73 73 65 64 20 61 74 20 | 61 20 74 69 6d 65 2e 20 |ssed at |a time. |
|000037a0| 49 66 20 61 20 66 69 6c | 65 20 6e 61 6d 65 20 68 |If a fil|e name h|
|000037b0| 61 73 20 6e 6f 0a 65 78 | 74 65 6e 73 69 6f 6e 2c |as no.ex|tension,|
|000037c0| 20 5c 76 65 72 62 7c 2e | 77 7c 20 77 69 6c 6c 20 | \verb|.|w| will |
|000037d0| 62 65 20 61 70 70 65 6e | 64 65 64 2e 20 20 7b 5c |be appen|ded. {\|
|000037e0| 4c 61 54 65 58 7d 20 73 | 75 69 74 61 62 6c 65 20 |LaTeX} s|uitable |
|000037f0| 66 6f 72 0a 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |for.tran|slation |
|00003800| 69 6e 74 6f 20 48 54 4d | 4c 20 62 79 20 7b 5c 4c |into HTM|L by {\L|
|00003810| 61 54 65 58 7d 32 48 54 | 4d 4c 20 77 69 6c 6c 20 |aTeX}2HT|ML will |
|00003820| 62 65 20 70 72 6f 64 75 | 63 65 64 20 66 72 6f 6d |be produ|ced from|
|00003830| 0a 66 69 6c 65 73 20 77 | 68 6f 73 65 20 6e 61 6d |.files w|hose nam|
|00003840| 65 20 65 6e 64 73 20 77 | 69 74 68 20 5c 76 65 72 |e ends w|ith \ver|
|00003850| 62 7c 2e 68 77 7c 2c 20 | 6f 74 68 65 72 77 69 73 |b|.hw|, |otherwis|
|00003860| 65 2c 20 6f 72 64 69 6e | 61 72 79 20 7b 5c 4c 61 |e, ordin|ary {\La|
|00003870| 54 65 58 7d 20 77 69 6c | 6c 20 62 65 0a 70 72 6f |TeX} wil|l be.pro|
|00003880| 64 75 63 65 64 2e 20 20 | 57 68 69 6c 65 20 61 20 |duced. |While a |
|00003890| 66 69 6c 65 20 6e 61 6d | 65 20 6d 61 79 20 73 70 |file nam|e may sp|
|000038a0| 65 63 69 66 79 20 61 20 | 66 69 6c 65 20 69 6e 20 |ecify a |file in |
|000038b0| 61 6e 6f 74 68 65 72 20 | 64 69 72 65 63 74 6f 72 |another |director|
|000038c0| 79 2c 0a 74 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |y,.the r|esulting|
|000038d0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|000038e0| 69 6c 65 20 77 69 6c 6c | 20 61 6c 77 61 79 73 20 |ile will| always |
|000038f0| 62 65 20 63 72 65 61 74 | 65 64 20 69 6e 20 74 68 |be creat|ed in th|
|00003900| 65 20 63 75 72 72 65 6e | 74 0a 64 69 72 65 63 74 |e curren|t.direct|
|00003910| 6f 72 79 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ory. For| example|
|00003920| 2c 0a 5c 62 65 67 69 6e | 7b 71 75 6f 74 65 7d 0a |,.\begin|{quote}.|
|00003930| 7b 5c 74 74 20 6e 75 77 | 65 62 20 2f 66 6f 6f 2f |{\tt nuw|eb /foo/|
|00003940| 62 61 72 2f 71 75 75 78 | 7d 0a 5c 65 6e 64 7b 71 |bar/quux|}.\end{q|
|00003950| 75 6f 74 65 7d 0a 77 69 | 6c 6c 20 74 61 6b 65 20 |uote}.wi|ll take |
|00003960| 61 73 20 69 6e 70 75 74 | 20 74 68 65 20 66 69 6c |as input| the fil|
|00003970| 65 20 5c 76 65 72 62 7c | 2f 66 6f 6f 2f 62 61 72 |e \verb||/foo/bar|
|00003980| 2f 71 75 75 78 2e 77 7c | 20 61 6e 64 20 77 69 6c |/quux.w|| and wil|
|00003990| 6c 20 63 72 65 61 74 65 | 20 74 68 65 0a 66 69 6c |l create| the.fil|
|000039a0| 65 20 5c 76 65 72 62 7c | 71 75 75 78 2e 74 65 78 |e \verb||quux.tex|
|000039b0| 7c 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 || in the| current|
|000039c0| 20 64 69 72 65 63 74 6f | 72 79 2e 0a 0a 42 79 20 | directo|ry...By |
|000039d0| 64 65 66 61 75 6c 74 2c | 20 6e 75 77 65 62 20 70 |default,| nuweb p|
|000039e0| 65 72 66 6f 72 6d 73 20 | 62 6f 74 68 20 74 61 6e |erforms |both tan|
|000039f0| 67 6c 69 6e 67 20 61 6e | 64 20 77 65 61 76 69 6e |gling an|d weavin|
|00003a00| 67 20 61 74 20 74 68 65 | 20 73 61 6d 65 20 74 69 |g at the| same ti|
|00003a10| 6d 65 2e 0a 4e 6f 72 6d | 61 6c 6c 79 2c 20 74 68 |me..Norm|ally, th|
|00003a20| 69 73 20 69 73 20 6e 6f | 74 20 61 20 62 6f 74 74 |is is no|t a bott|
|00003a30| 6c 65 6e 65 63 6b 20 69 | 6e 20 74 68 65 20 63 6f |leneck i|n the co|
|00003a40| 6d 70 69 6c 61 74 69 6f | 6e 20 70 72 6f 63 65 73 |mpilatio|n proces|
|00003a50| 73 3b 0a 68 6f 77 65 76 | 65 72 2c 20 69 74 27 73 |s;.howev|er, it's|
|00003a60| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 61 63 68 | possibl|e to ach|
|00003a70| 69 65 76 65 20 73 6c 69 | 67 68 74 6c 79 20 66 61 |ieve sli|ghtly fa|
|00003a80| 73 74 65 72 20 74 68 72 | 6f 75 67 68 70 75 74 20 |ster thr|oughput |
|00003a90| 62 79 0a 61 76 6f 69 64 | 69 6e 67 20 6f 6e 65 20 |by.avoid|ing one |
|00003aa0| 6f 72 20 61 6e 6f 74 68 | 65 72 20 6f 66 20 74 68 |or anoth|er of th|
|00003ab0| 65 20 64 65 66 61 75 6c | 74 20 66 75 6e 63 74 69 |e defaul|t functi|
|00003ac0| 6f 6e 73 20 75 73 69 6e | 67 20 63 6f 6d 6d 61 6e |ons usin|g comman|
|00003ad0| 64 2d 6c 69 6e 65 0a 66 | 6c 61 67 73 2e 20 54 68 |d-line.f|lags. Th|
|00003ae0| 65 72 65 20 61 72 65 20 | 63 75 72 72 65 6e 74 6c |ere are |currentl|
|00003af0| 79 20 74 68 72 65 65 20 | 70 6f 73 73 69 62 6c 65 |y three |possible|
|00003b00| 20 66 6c 61 67 73 3a 0a | 5c 62 65 67 69 6e 7b 64 | flags:.|\begin{d|
|00003b10| 65 73 63 72 69 70 74 69 | 6f 6e 7d 0a 5c 69 74 65 |escripti|on}.\ite|
|00003b20| 6d 5b 5c 74 74 20 2d 74 | 5d 20 53 75 70 70 72 65 |m[\tt -t|] Suppre|
|00003b30| 73 73 20 67 65 6e 65 72 | 61 74 69 6f 6e 20 6f 66 |ss gener|ation of|
|00003b40| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | the doc|umentati|
|00003b50| 6f 6e 20 66 69 6c 65 2e | 0a 5c 69 74 65 6d 5b 5c |on file.|.\item[\|
|00003b60| 74 74 20 2d 6f 5d 20 53 | 75 70 70 72 65 73 73 20 |tt -o] S|uppress |
|00003b70| 67 65 6e 65 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 |generati|on of th|
|00003b80| 65 20 6f 75 74 70 75 74 | 20 66 69 6c 65 73 2e 0a |e output| files..|
|00003b90| 5c 69 74 65 6d 5b 5c 74 | 74 20 2d 63 5d 20 41 76 |\item[\t|t -c] Av|
|00003ba0| 6f 69 64 20 74 65 73 74 | 69 6e 67 20 6f 75 74 70 |oid test|ing outp|
|00003bb0| 75 74 20 66 69 6c 65 73 | 20 66 6f 72 20 63 68 61 |ut files| for cha|
|00003bc0| 6e 67 65 20 62 65 66 6f | 72 65 20 75 70 64 61 74 |nge befo|re updat|
|00003bd0| 69 6e 67 20 74 68 65 6d | 2e 0a 5c 65 6e 64 7b 64 |ing them|..\end{d|
|00003be0| 65 73 63 72 69 70 74 69 | 6f 6e 7d 0a 54 68 75 73 |escripti|on}.Thus|
|00003bf0| 2c 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 0a 5c 62 |, the co|mmand.\b|
|00003c00| 65 67 69 6e 7b 71 75 6f | 74 65 7d 0a 5c 76 65 72 |egin{quo|te}.\ver|
|00003c10| 62 7c 6e 75 77 65 62 20 | 2d 74 6f 20 2f 66 6f 6f |b|nuweb |-to /foo|
|00003c20| 2f 62 61 72 2f 71 75 75 | 78 7c 0a 5c 65 6e 64 7b |/bar/quu|x|.\end{|
|00003c30| 71 75 6f 74 65 7d 0a 77 | 6f 75 6c 64 20 73 69 6d |quote}.w|ould sim|
|00003c40| 70 6c 79 20 73 63 61 6e | 20 74 68 65 20 69 6e 70 |ply scan| the inp|
|00003c50| 75 74 20 61 6e 64 20 70 | 72 6f 64 75 63 65 20 6e |ut and p|roduce n|
|00003c60| 6f 20 6f 75 74 70 75 74 | 20 61 74 20 61 6c 6c 2e |o output| at all.|
|00003c70| 0a 0a 54 68 65 72 65 20 | 61 72 65 20 74 77 6f 20 |..There |are two |
|00003c80| 61 64 64 69 74 69 6f 6e | 61 6c 20 63 6f 6d 6d 61 |addition|al comma|
|00003c90| 6e 64 2d 6c 69 6e 65 20 | 66 6c 61 67 73 3a 0a 5c |nd-line |flags:.\|
|00003ca0| 62 65 67 69 6e 7b 64 65 | 73 63 72 69 70 74 69 6f |begin{de|scriptio|
|00003cb0| 6e 7d 0a 5c 69 74 65 6d | 5b 5c 74 74 20 2d 76 5d |n}.\item|[\tt -v]|
|00003cc0| 20 46 6f 72 20 60 60 76 | 65 72 62 6f 73 65 2c 27 | For ``v|erbose,'|
|00003cd0| 27 20 63 61 75 73 65 73 | 20 6e 75 77 65 62 20 74 |' causes| nuweb t|
|00003ce0| 6f 20 77 72 69 74 65 20 | 69 6e 66 6f 72 6d 61 74 |o write |informat|
|00003cf0| 69 6f 6e 20 61 62 6f 75 | 74 0a 20 20 69 74 73 20 |ion abou|t. its |
|00003d00| 70 72 6f 67 72 65 73 73 | 20 74 6f 20 5c 76 65 72 |progress| to \ver|
|00003d10| 62 7c 73 74 64 65 72 72 | 7c 2e 0a 5c 69 74 65 6d |b|stderr||..\item|
|00003d20| 5b 5c 74 74 20 2d 6e 5d | 20 46 6f 72 63 65 73 20 |[\tt -n]| Forces |
|00003d30| 73 63 72 61 70 73 20 74 | 6f 20 62 65 20 6e 75 6d |scraps t|o be num|
|00003d40| 62 65 72 65 64 20 73 65 | 71 75 65 6e 74 69 61 6c |bered se|quential|
|00003d50| 6c 79 20 66 72 6f 6d 7e | 31 0a 20 20 28 69 6e 73 |ly from~|1. (ins|
|00003d60| 74 65 61 64 20 6f 66 20 | 75 73 69 6e 67 20 70 61 |tead of |using pa|
|00003d70| 67 65 20 6e 75 6d 62 65 | 72 73 29 2e 20 54 68 69 |ge numbe|rs). Thi|
|00003d80| 73 20 66 6f 72 6d 20 69 | 73 20 70 65 72 68 61 70 |s form i|s perhap|
|00003d90| 73 20 6d 6f 72 65 20 64 | 65 73 69 72 61 62 6c 65 |s more d|esirable|
|00003da0| 0a 20 20 66 6f 72 20 73 | 6d 61 6c 6c 20 77 65 62 |. for s|mall web|
|00003db0| 73 2e 0a 5c 65 6e 64 7b | 64 65 73 63 72 69 70 74 |s..\end{|descript|
|00003dc0| 69 6f 6e 7d 0a 0a 5c 73 | 65 63 74 69 6f 6e 7b 47 |ion}..\s|ection{G|
|00003dd0| 65 6e 65 72 61 74 69 6e | 67 20 48 54 4d 4c 7d 0a |eneratin|g HTML}.|
|00003de0| 0a 4e 69 6b 6f 73 20 44 | 72 61 6b 6f 73 27 20 7b |.Nikos D|rakos' {|
|00003df0| 5c 4c 61 54 65 58 7d 32 | 48 54 4d 4c 20 56 65 72 |\LaTeX}2|HTML Ver|
|00003e00| 73 69 6f 6e 20 30 2e 35 | 2e 33 7e 5c 63 69 74 65 |sion 0.5|.3~\cite|
|00003e10| 7b 64 72 61 6b 6f 73 3a | 39 34 7d 20 63 61 6e 20 |{drakos:|94} can |
|00003e20| 62 65 20 75 73 65 64 0a | 74 6f 20 74 72 61 6e 73 |be used.|to trans|
|00003e30| 6c 61 74 65 20 7b 5c 4c | 61 54 65 58 7d 20 77 69 |late {\L|aTeX} wi|
|00003e40| 74 68 20 65 6d 62 65 64 | 64 65 64 20 48 54 4d 4c |th embed|ded HTML|
|00003e50| 20 73 63 72 61 70 73 20 | 69 6e 74 6f 20 48 54 4d | scraps |into HTM|
|00003e60| 4c 5c 40 40 2e 20 20 42 | 65 20 73 75 72 65 0a 74 |L\@@. B|e sure.t|
|00003e70| 6f 20 69 6e 63 6c 75 64 | 65 20 74 68 65 20 64 6f |o includ|e the do|
|00003e80| 63 75 6d 65 6e 74 2d 73 | 74 79 6c 65 20 6f 70 74 |cument-s|tyle opt|
|00003e90| 69 6f 6e 20 5c 76 65 72 | 62 7c 68 74 6d 6c 7c 20 |ion \ver|b|html| |
|00003ea0| 73 6f 20 74 68 61 74 20 | 7b 5c 4c 61 54 65 58 7d |so that |{\LaTeX}|
|00003eb0| 20 77 69 6c 6c 0a 75 6e | 64 65 72 73 74 61 6e 64 | will.un|derstand|
|00003ec0| 20 74 68 65 20 68 79 70 | 65 72 74 65 78 74 20 63 | the hyp|ertext c|
|00003ed0| 6f 6d 6d 61 6e 64 73 2e | 20 20 57 68 65 6e 20 74 |ommands.| When t|
|00003ee0| 72 61 6e 73 6c 61 74 69 | 6e 67 20 69 6e 74 6f 20 |ranslati|ng into |
|00003ef0| 48 54 4d 4c 2c 20 64 6f | 20 6e 6f 74 0a 61 6c 6c |HTML, do| not.all|
|00003f00| 6f 77 20 61 20 64 6f 63 | 75 6d 65 6e 74 20 74 6f |ow a doc|ument to|
|00003f10| 20 62 65 20 73 70 6c 69 | 74 20 62 79 20 73 70 65 | be spli|t by spe|
|00003f20| 63 69 66 79 69 6e 67 20 | 60 60 5c 76 65 72 62 7c |cifying |``\verb||
|00003f30| 2d 73 70 6c 69 74 20 30 | 7c 27 27 2e 20 20 0a 59 |-split 0||''. .Y|
|00003f40| 6f 75 20 6e 65 65 64 20 | 6e 6f 74 20 67 65 6e 65 |ou need |not gene|
|00003f50| 72 61 74 65 20 6e 61 76 | 69 67 61 74 69 6f 6e 20 |rate nav|igation |
|00003f60| 6c 69 6e 6b 73 2c 20 73 | 6f 20 61 6c 73 6f 20 73 |links, s|o also s|
|00003f70| 70 65 63 69 66 79 0a 60 | 60 5c 76 65 72 62 7c 2d |pecify.`|`\verb|-|
|00003f80| 6e 6f 5f 6e 61 76 69 67 | 61 74 69 6f 6e 7c 27 27 |no_navig|ation|''|
|00003f90| 2e 0a 0a 57 68 69 6c 65 | 20 70 72 65 70 61 72 69 |...While| prepari|
|00003fa0| 6e 67 20 61 20 77 65 62 | 2c 20 79 6f 75 20 6d 61 |ng a web|, you ma|
|00003fb0| 79 20 77 61 6e 74 20 74 | 6f 20 76 69 65 77 20 74 |y want t|o view t|
|00003fc0| 68 65 20 70 72 6f 67 72 | 61 6d 27 73 20 73 63 72 |he progr|am's scr|
|00003fd0| 61 70 73 20 77 69 74 68 | 6f 75 74 0a 74 61 6b 69 |aps with|out.taki|
|00003fe0| 6e 67 20 74 68 65 20 74 | 69 6d 65 20 74 6f 20 72 |ng the t|ime to r|
|00003ff0| 75 6e 20 7b 5c 4c 61 54 | 65 58 7d 32 48 54 4d 4c |un {\LaT|eX}2HTML|
|00004000| 5c 40 40 2e 20 20 53 69 | 6d 70 6c 79 20 72 65 6e |\@@. Si|mply ren|
|00004010| 61 6d 65 20 74 68 65 20 | 67 65 6e 65 72 61 74 65 |ame the |generate|
|00004020| 64 0a 7b 5c 4c 61 54 65 | 58 7d 20 73 6f 75 72 63 |d.{\LaTe|X} sourc|
|00004030| 65 20 73 6f 20 74 68 61 | 74 20 69 74 73 20 66 69 |e so tha|t its fi|
|00004040| 6c 65 20 6e 61 6d 65 20 | 65 6e 64 73 20 77 69 74 |le name |ends wit|
|00004050| 68 20 5c 76 65 72 62 7c | 2e 68 74 6d 6c 7c 2c 20 |h \verb||.html|, |
|00004060| 61 6e 64 20 76 69 65 77 | 0a 74 68 61 74 20 66 69 |and view|.that fi|
|00004070| 6c 65 2e 20 20 54 68 65 | 20 64 6f 63 75 6d 65 6e |le. The| documen|
|00004080| 74 61 74 69 6f 6e 73 20 | 73 65 63 74 69 6f 6e 20 |tations |section |
|00004090| 77 69 6c 6c 20 62 65 20 | 6a 75 6d 62 6c 65 64 2c |will be |jumbled,|
|000040a0| 20 62 75 74 20 74 68 65 | 0a 73 63 72 61 70 73 20 | but the|.scraps |
|000040b0| 77 69 6c 6c 20 62 65 20 | 63 6c 65 61 72 2e 0a 0a |will be |clear...|
|000040c0| 5c 73 65 63 74 69 6f 6e | 7b 52 65 73 74 72 69 63 |\section|{Restric|
|000040d0| 74 69 6f 6e 73 7d 0a 0a | 42 65 63 61 75 73 65 20 |tions}..|Because |
|000040e0| 6e 75 77 65 62 20 69 73 | 20 69 6e 74 65 6e 64 65 |nuweb is| intende|
|000040f0| 64 20 74 6f 20 62 65 20 | 61 20 73 69 6d 70 6c 65 |d to be |a simple|
|00004100| 20 74 6f 6f 6c 2c 20 49 | 27 76 65 20 65 73 74 61 | tool, I|'ve esta|
|00004110| 62 6c 69 73 68 65 64 20 | 61 20 66 65 77 0a 72 65 |blished |a few.re|
|00004120| 73 74 72 69 63 74 69 6f | 6e 73 2e 20 4f 76 65 72 |strictio|ns. Over|
|00004130| 20 74 69 6d 65 2c 20 73 | 6f 6d 65 20 6f 66 20 74 | time, s|ome of t|
|00004140| 68 65 73 65 20 6d 61 79 | 20 62 65 20 65 6c 69 6d |hese may| be elim|
|00004150| 69 6e 61 74 65 64 3b 20 | 6f 74 68 65 72 73 20 73 |inated; |others s|
|00004160| 65 65 6d 0a 66 75 6e 64 | 61 6d 65 6e 74 61 6c 2e |eem.fund|amental.|
|00004170| 0a 5c 62 65 67 69 6e 7b | 69 74 65 6d 69 7a 65 7d |.\begin{|itemize}|
|00004180| 0a 5c 69 74 65 6d 20 54 | 68 65 20 68 61 6e 64 6c |.\item T|he handl|
|00004190| 69 6e 67 20 6f 66 20 65 | 72 72 6f 72 73 20 69 73 |ing of e|rrors is|
|000041a0| 20 6e 6f 74 20 63 6f 6d | 70 6c 65 74 65 6c 79 20 | not com|pletely |
|000041b0| 69 64 65 61 6c 2e 20 49 | 6e 20 73 6f 6d 65 20 63 |ideal. I|n some c|
|000041c0| 61 73 65 73 2c 20 49 0a | 20 20 73 69 6d 70 6c 79 |ases, I.| simply|
|000041d0| 20 77 61 72 6e 20 6f 66 | 20 61 20 70 72 6f 62 6c | warn of| a probl|
|000041e0| 65 6d 20 61 6e 64 20 63 | 6f 6e 74 69 6e 75 65 3b |em and c|ontinue;|
|000041f0| 20 69 6e 20 6f 74 68 65 | 72 20 63 61 73 65 73 20 | in othe|r cases |
|00004200| 49 20 68 61 6c 74 0a 20 | 20 69 6d 6d 65 64 69 61 |I halt. | immedia|
|00004210| 74 65 6c 79 2e 20 54 68 | 69 73 20 62 65 68 61 76 |tely. Th|is behav|
|00004220| 69 6f 72 20 73 68 6f 75 | 6c 64 20 62 65 20 72 65 |ior shou|ld be re|
|00004230| 67 75 6c 61 72 69 7a 65 | 64 2e 0a 5c 69 74 65 6d |gularize|d..\item|
|00004240| 20 49 20 77 61 72 6e 20 | 61 62 6f 75 74 20 72 65 | I warn |about re|
|00004250| 66 65 72 65 6e 63 65 73 | 20 74 6f 20 6d 61 63 72 |ferences| to macr|
|00004260| 6f 73 20 74 68 61 74 20 | 68 61 76 65 6e 27 74 20 |os that |haven't |
|00004270| 62 65 65 6e 20 64 65 66 | 69 6e 65 64 2c 20 62 75 |been def|ined, bu|
|00004280| 74 0a 20 20 64 6f 6e 27 | 74 20 68 61 6c 74 2e 20 |t. don'|t halt. |
|00004290| 54 68 69 73 20 73 65 65 | 6d 73 20 6d 6f 73 74 20 |This see|ms most |
|000042a0| 63 6f 6e 76 65 6e 69 65 | 6e 74 20 66 6f 72 20 64 |convenie|nt for d|
|000042b0| 65 76 65 6c 6f 70 6d 65 | 6e 74 2c 20 62 75 74 20 |evelopme|nt, but |
|000042c0| 6d 61 79 20 63 68 61 6e | 67 65 0a 20 20 69 6e 20 |may chan|ge. in |
|000042d0| 74 68 65 20 66 75 74 75 | 72 65 2e 0a 5c 69 74 65 |the futu|re..\ite|
|000042e0| 6d 20 46 69 6c 65 20 6e | 61 6d 65 73 20 61 6e 64 |m File n|ames and|
|000042f0| 20 69 6e 64 65 78 20 65 | 6e 74 72 69 65 73 20 73 | index e|ntries s|
|00004300| 68 6f 75 6c 64 20 6e 6f | 74 20 63 6f 6e 74 61 69 |hould no|t contai|
|00004310| 6e 20 61 6e 79 20 5c 76 | 65 72 62 7c 40 40 7c 0a |n any \v|erb|@@|.|
|00004320| 20 20 73 69 67 6e 73 2e | 0a 5c 69 74 65 6d 20 4d | signs.|.\item M|
|00004330| 61 63 72 6f 20 6e 61 6d | 65 73 20 6d 61 79 20 62 |acro nam|es may b|
|00004340| 65 20 28 61 6c 6d 6f 73 | 74 29 20 61 6e 79 20 77 |e (almos|t) any w|
|00004350| 65 6c 6c 2d 66 6f 72 6d | 65 64 20 5c 54 65 58 5c |ell-form|ed \TeX\|
|00004360| 20 73 74 72 69 6e 67 2e | 0a 20 20 49 74 20 6d 61 | string.|. It ma|
|00004370| 6b 65 73 20 73 65 6e 73 | 65 20 74 6f 20 63 68 61 |kes sens|e to cha|
|00004380| 6e 67 65 20 66 6f 6e 74 | 73 20 6f 72 20 75 73 65 |nge font|s or use|
|00004390| 20 6d 61 74 68 20 6d 6f | 64 65 3b 20 68 6f 77 65 | math mo|de; howe|
|000043a0| 76 65 72 2c 20 63 61 72 | 65 20 73 68 6f 75 6c 64 |ver, car|e should|
|000043b0| 0a 20 20 62 65 20 74 61 | 6b 65 6e 20 74 6f 20 65 |. be ta|ken to e|
|000043c0| 6e 73 75 72 65 20 6d 61 | 74 63 68 69 6e 67 20 62 |nsure ma|tching b|
|000043d0| 72 61 63 65 73 2c 20 62 | 72 61 63 6b 65 74 73 2c |races, b|rackets,|
|000043e0| 20 61 6e 64 20 64 6f 6c | 6c 61 72 20 73 69 67 6e | and dol|lar sign|
|000043f0| 73 2e 0a 20 20 57 68 65 | 6e 20 70 72 6f 64 75 63 |s.. Whe|n produc|
|00004400| 69 6e 67 20 48 54 4d 4c | 2c 20 6d 61 63 72 6f 73 |ing HTML|, macros|
|00004410| 20 61 72 65 20 64 69 73 | 70 6c 61 79 65 64 20 69 | are dis|played i|
|00004420| 6e 20 61 20 70 72 65 66 | 6f 72 6d 61 74 74 65 64 |n a pref|ormatted|
|00004430| 20 65 6c 65 6d 65 6e 74 | 0a 20 20 28 50 52 45 29 | element|. (PRE)|
|00004440| 2c 20 73 6f 20 6d 61 63 | 72 6f 73 20 6d 61 79 20 |, so mac|ros may |
|00004450| 63 6f 6e 74 61 69 6e 20 | 6f 6e 65 20 6f 72 20 6d |contain |one or m|
|00004460| 6f 72 65 20 41 2c 20 42 | 2c 20 49 2c 20 55 2c 20 |ore A, B|, I, U, |
|00004470| 6f 72 20 50 20 65 6c 65 | 6d 65 6e 74 73 0a 20 20 |or P ele|ments. |
|00004480| 6f 72 20 64 61 74 61 20 | 63 68 61 72 61 63 74 65 |or data |characte|
|00004490| 72 73 2e 0a 5c 69 74 65 | 6d 20 41 6e 79 74 68 69 |rs..\ite|m Anythi|
|000044a0| 6e 67 20 69 73 20 61 6c | 6c 6f 77 65 64 20 69 6e |ng is al|lowed in|
|000044b0| 20 74 68 65 20 62 6f 64 | 79 20 6f 66 20 61 20 73 | the bod|y of a s|
|000044c0| 63 72 61 70 3b 20 68 6f | 77 65 76 65 72 2c 20 76 |crap; ho|wever, v|
|000044d0| 65 72 79 0a 20 20 6c 6f | 6e 67 20 73 63 72 61 70 |ery. lo|ng scrap|
|000044e0| 73 20 28 68 6f 72 69 7a | 6f 6e 74 61 6c 6c 79 20 |s (horiz|ontally |
|000044f0| 6f 72 20 76 65 72 74 69 | 63 61 6c 6c 79 29 20 6d |or verti|cally) m|
|00004500| 61 79 20 6e 6f 74 20 74 | 79 70 65 73 65 74 20 77 |ay not t|ypeset w|
|00004510| 65 6c 6c 2e 0a 5c 69 74 | 65 6d 20 54 65 6d 70 6f |ell..\it|em Tempo|
|00004520| 72 61 72 79 20 66 69 6c | 65 73 20 28 63 72 65 61 |rary fil|es (crea|
|00004530| 74 65 64 20 66 6f 72 20 | 63 6f 6d 70 61 72 69 73 |ted for |comparis|
|00004540| 6f 6e 20 74 6f 20 74 68 | 65 20 65 76 65 6e 74 75 |on to th|e eventu|
|00004550| 61 6c 0a 20 20 6f 75 74 | 70 75 74 20 66 69 6c 65 |al. out|put file|
|00004560| 73 29 20 61 72 65 20 70 | 6c 61 63 65 64 20 69 6e |s) are p|laced in|
|00004570| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 69 72 | the cur|rent dir|
|00004580| 65 63 74 6f 72 79 2e 20 | 53 69 6e 63 65 20 74 68 |ectory. |Since th|
|00004590| 65 79 20 6d 61 79 20 62 | 65 0a 20 20 72 65 6e 61 |ey may b|e. rena|
|000045a0| 6d 65 64 20 74 6f 20 61 | 6e 20 6f 75 74 70 75 74 |med to a|n output|
|000045b0| 20 66 69 6c 65 20 6e 61 | 6d 65 2c 20 61 6c 6c 20 | file na|me, all |
|000045c0| 74 68 65 20 6f 75 74 70 | 75 74 20 66 69 6c 65 73 |the outp|ut files|
|000045d0| 20 73 68 6f 75 6c 64 20 | 62 65 20 6f 6e 20 74 68 | should |be on th|
|000045e0| 65 0a 20 20 73 61 6d 65 | 20 66 69 6c 65 20 73 79 |e. same| file sy|
|000045f0| 73 74 65 6d 20 61 73 20 | 74 68 65 20 63 75 72 72 |stem as |the curr|
|00004600| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 5c |ent dire|ctory..\|
|00004610| 69 74 65 6d 20 42 65 63 | 61 75 73 65 20 70 61 67 |item Bec|ause pag|
|00004620| 65 20 6e 75 6d 62 65 72 | 73 20 63 61 6e 6e 6f 74 |e number|s cannot|
|00004630| 20 62 65 20 64 65 74 65 | 72 6d 69 6e 65 64 20 75 | be dete|rmined u|
|00004640| 6e 74 69 6c 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |ntil the| documen|
|00004650| 74 20 68 61 73 0a 20 20 | 62 65 65 6e 20 74 79 70 |t has. |been typ|
|00004660| 65 73 65 74 2c 20 77 65 | 20 68 61 76 65 20 74 6f |eset, we| have to|
|00004670| 20 72 65 72 75 6e 20 6e | 75 77 65 62 20 61 66 74 | rerun n|uweb aft|
|00004680| 65 72 20 5c 4c 61 54 65 | 58 5c 20 74 6f 20 6f 62 |er \LaTe|X\ to ob|
|00004690| 74 61 69 6e 20 61 20 63 | 6c 65 61 6e 0a 20 20 76 |tain a c|lean. v|
|000046a0| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 65 20 64 6f |ersion o|f the do|
|000046b0| 63 75 6d 65 6e 74 20 28 | 76 65 72 79 20 73 69 6d |cument (|very sim|
|000046c0| 69 6c 61 72 20 74 6f 20 | 74 68 65 20 77 61 79 20 |ilar to |the way |
|000046d0| 77 65 20 73 6f 6d 65 74 | 69 6d 65 73 20 68 61 76 |we somet|imes hav|
|000046e0| 65 0a 20 20 74 6f 20 72 | 65 72 75 6e 20 5c 4c 61 |e. to r|erun \La|
|000046f0| 54 65 58 5c 20 74 6f 20 | 6f 62 74 61 69 6e 20 61 |TeX\ to |obtain a|
|00004700| 6e 20 75 70 2d 74 6f 2d | 64 61 74 65 20 74 61 62 |n up-to-|date tab|
|00004710| 6c 65 20 6f 66 20 63 6f | 6e 74 65 6e 74 73 20 61 |le of co|ntents a|
|00004720| 66 74 65 72 0a 20 20 73 | 69 67 6e 69 66 69 63 61 |fter. s|ignifica|
|00004730| 6e 74 20 65 64 69 74 73 | 29 2e 20 20 4e 75 77 65 |nt edits|). Nuwe|
|00004740| 62 20 77 69 6c 6c 20 77 | 61 72 6e 20 28 69 6e 20 |b will w|arn (in |
|00004750| 6d 6f 73 74 20 63 61 73 | 65 73 29 20 77 68 65 6e |most cas|es) when|
|00004760| 20 74 68 69 73 20 6e 65 | 65 64 73 0a 20 20 74 6f | this ne|eds. to|
|00004770| 20 62 65 20 64 6f 6e 65 | 3b 20 69 6e 20 74 68 65 | be done|; in the|
|00004780| 20 72 65 6d 61 69 6e 69 | 6e 67 20 63 61 73 65 73 | remaini|ng cases|
|00004790| 2c 20 5c 4c 61 54 65 58 | 5c 20 77 69 6c 6c 20 77 |, \LaTeX|\ will w|
|000047a0| 61 72 6e 20 74 68 61 74 | 20 6c 61 62 65 6c 73 0a |arn that| labels.|
|000047b0| 20 20 6d 61 79 20 68 61 | 76 65 20 63 68 61 6e 67 | may ha|ve chang|
|000047c0| 65 64 2e 0a 5c 65 6e 64 | 7b 69 74 65 6d 69 7a 65 |ed..\end|{itemize|
|000047d0| 7d 0a 56 65 72 79 20 6c | 6f 6e 67 20 73 63 72 61 |}.Very l|ong scra|
|000047e0| 70 73 20 6d 61 79 20 62 | 65 20 61 6c 6c 6f 77 65 |ps may b|e allowe|
|000047f0| 64 20 74 6f 20 62 72 65 | 61 6b 20 61 63 72 6f 73 |d to bre|ak acros|
|00004800| 73 20 61 20 70 61 67 65 | 20 69 66 20 64 65 63 6c |s a page| if decl|
|00004810| 61 72 65 64 0a 77 69 74 | 68 20 5c 76 65 72 62 7c |ared.wit|h \verb||
|00004820| 40 40 4f 7c 20 6f 72 20 | 5c 76 65 72 62 7c 40 40 |@@O| or |\verb|@@|
|00004830| 44 7c 20 28 69 6e 73 74 | 65 61 64 20 6f 66 20 5c |D| (inst|ead of \|
|00004840| 76 65 72 62 7c 40 40 6f | 7c 20 61 6e 64 20 5c 76 |verb|@@o|| and \v|
|00004850| 65 72 62 7c 40 40 64 7c | 29 2e 0a 54 68 69 73 20 |erb|@@d||)..This |
|00004860| 64 6f 65 73 6e 27 74 20 | 77 6f 72 6b 20 76 65 72 |doesn't |work ver|
|00004870| 79 20 77 65 6c 6c 20 61 | 73 20 61 20 64 65 66 61 |y well a|s a defa|
|00004880| 75 6c 74 2c 20 73 69 6e | 63 65 20 66 61 72 20 74 |ult, sin|ce far t|
|00004890| 6f 6f 20 6d 61 6e 79 20 | 73 68 6f 72 74 0a 73 63 |oo many |short.sc|
|000048a0| 72 61 70 73 20 77 69 6c | 6c 20 62 65 20 62 72 6f |raps wil|l be bro|
|000048b0| 6b 65 6e 20 61 63 72 6f | 73 73 20 70 61 67 65 73 |ken acro|ss pages|
|000048c0| 3b 20 68 6f 77 65 76 65 | 72 2c 20 61 73 20 61 20 |; howeve|r, as a |
|000048d0| 75 73 65 72 2d 63 6f 6e | 74 72 6f 6c 6c 65 64 0a |user-con|trolled.|
|000048e0| 6f 70 74 69 6f 6e 2c 20 | 69 74 20 73 65 65 6d 73 |option, |it seems|
|000048f0| 20 76 65 72 79 20 75 73 | 65 66 75 6c 2e 20 20 4e | very us|eful. N|
|00004900| 6f 20 64 69 73 74 69 6e | 63 74 69 6f 6e 20 69 73 |o distin|ction is|
|00004910| 20 6d 61 64 65 20 62 65 | 74 77 65 65 6e 20 74 68 | made be|tween th|
|00004920| 65 0a 75 70 70 65 72 20 | 63 61 73 65 20 61 6e 64 |e.upper |case and|
|00004930| 20 6c 6f 77 65 72 20 63 | 61 73 65 20 66 6f 72 6d | lower c|ase form|
|00004940| 73 20 6f 66 20 74 68 65 | 73 65 20 63 6f 6d 6d 61 |s of the|se comma|
|00004950| 6e 64 73 20 77 68 65 6e | 20 67 65 6e 65 72 61 74 |nds when| generat|
|00004960| 69 6e 67 0a 48 54 4d 4c | 5c 40 40 2e 0a 0a 5c 73 |ing.HTML|\@@...\s|
|00004970| 65 63 74 69 6f 6e 7b 41 | 63 6b 6e 6f 77 6c 65 64 |ection{A|cknowled|
|00004980| 67 65 6d 65 6e 74 73 7d | 0a 0a 53 65 76 65 72 61 |gements}|..Severa|
|00004990| 6c 20 70 65 6f 70 6c 65 | 20 68 61 76 65 20 63 6f |l people| have co|
|000049a0| 6e 74 72 69 62 75 74 65 | 64 20 74 68 65 69 72 20 |ntribute|d their |
|000049b0| 74 69 6d 65 73 2c 20 69 | 64 65 61 73 2c 20 61 6e |times, i|deas, an|
|000049c0| 64 20 64 65 62 75 67 67 | 69 6e 67 0a 73 6b 69 6c |d debugg|ing.skil|
|000049d0| 6c 73 2e 20 49 6e 20 70 | 61 72 74 69 63 75 6c 61 |ls. In p|articula|
|000049e0| 72 2c 20 49 27 64 20 6c | 69 6b 65 20 74 6f 20 61 |r, I'd l|ike to a|
|000049f0| 63 6b 6e 6f 77 6c 65 64 | 67 65 20 74 68 65 20 63 |cknowled|ge the c|
|00004a00| 6f 6e 74 72 69 62 75 74 | 69 6f 6e 73 20 6f 66 0a |ontribut|ions of.|
|00004a10| 4f 73 6d 61 6e 20 42 75 | 79 75 6b 69 73 69 6b 2c |Osman Bu|yukisik,|
|00004a20| 20 4d 61 6e 75 65 6c 20 | 43 61 72 72 69 62 61 2c | Manuel |Carriba,|
|00004a30| 20 41 64 72 69 61 6e 20 | 43 6c 61 72 6b 65 2c 20 | Adrian |Clarke, |
|00004a40| 54 69 6d 20 48 61 72 76 | 65 79 2c 20 4d 69 63 68 |Tim Harv|ey, Mich|
|00004a50| 61 65 6c 0a 4c 65 77 69 | 73 2c 20 57 61 6c 74 65 |ael.Lewi|s, Walte|
|00004a60| 72 20 52 61 76 65 6e 65 | 6b 2c 20 52 6f 62 20 53 |r Ravene|k, Rob S|
|00004a70| 68 69 6c 6c 69 6e 67 73 | 62 75 72 67 2c 20 4b 61 |hillings|burg, Ka|
|00004a80| 79 76 61 6e 20 53 79 6c | 76 61 6e 2c 20 44 6f 6d |yvan Syl|van, Dom|
|00004a90| 69 6e 69 71 75 65 0a 64 | 65 7e 57 61 6c 65 66 66 |inique.d|e~Waleff|
|00004aa0| 65 2c 20 61 6e 64 20 53 | 63 6f 74 74 20 57 61 72 |e, and S|cott War|
|00004ab0| 72 65 6e 2e 20 20 4f 66 | 20 63 6f 75 72 73 65 2c |ren. Of| course,|
|00004ac0| 20 6d 6f 73 74 20 6f 66 | 20 74 68 65 73 65 20 70 | most of| these p|
|00004ad0| 65 6f 70 6c 65 20 77 6f | 75 6c 64 0a 6e 65 76 65 |eople wo|uld.neve|
|00004ae0| 72 20 68 61 76 65 20 68 | 65 61 72 64 20 6f 72 20 |r have h|eard or |
|00004af0| 6e 75 77 65 62 20 28 6f | 72 20 6d 61 6e 79 20 6f |nuweb (o|r many o|
|00004b00| 74 68 65 72 20 74 6f 6f | 6c 73 29 20 77 69 74 68 |ther too|ls) with|
|00004b10| 6f 75 74 20 74 68 65 20 | 65 66 66 6f 72 74 73 20 |out the |efforts |
|00004b20| 6f 66 0a 47 65 6f 72 67 | 65 20 47 72 65 65 6e 77 |of.Georg|e Greenw|
|00004b30| 61 64 65 2e 0a 0a 0a 5c | 69 66 73 68 6f 77 63 6f |ade....\|ifshowco|
|00004b40| 64 65 0a 5c 63 68 61 70 | 74 65 72 7b 54 68 65 20 |de.\chap|ter{The |
|00004b50| 4f 76 65 72 61 6c 6c 20 | 53 74 72 75 63 74 75 72 |Overall |Structur|
|00004b60| 65 7d 0a 0a 50 72 6f 63 | 65 73 73 69 6e 67 20 61 |e}..Proc|essing a|
|00004b70| 20 77 65 62 20 72 65 71 | 75 69 72 65 73 20 74 68 | web req|uires th|
|00004b80| 72 65 65 20 6d 61 6a 6f | 72 20 73 74 65 70 73 3a |ree majo|r steps:|
|00004b90| 0a 5c 62 65 67 69 6e 7b | 65 6e 75 6d 65 72 61 74 |.\begin{|enumerat|
|00004ba0| 65 7d 0a 5c 69 74 65 6d | 20 52 65 61 64 20 74 68 |e}.\item| Read th|
|00004bb0| 65 20 73 6f 75 72 63 65 | 2c 20 61 63 63 75 6d 75 |e source|, accumu|
|00004bc0| 6c 61 74 69 6e 67 20 66 | 69 6c 65 20 6e 61 6d 65 |lating f|ile name|
|00004bd0| 73 2c 20 6d 61 63 72 6f | 20 6e 61 6d 65 73 2c 20 |s, macro| names, |
|00004be0| 73 63 72 61 70 73 2c 0a | 61 6e 64 20 6c 69 73 74 |scraps,.|and list|
|00004bf0| 73 20 6f 66 20 63 72 6f | 73 73 2d 72 65 66 65 72 |s of cro|ss-refer|
|00004c00| 65 6e 63 65 73 2e 0a 5c | 69 74 65 6d 20 52 65 72 |ences..\|item Rer|
|00004c10| 65 61 64 20 74 68 65 20 | 73 6f 75 72 63 65 2c 20 |ead the |source, |
|00004c20| 63 6f 70 79 69 6e 67 20 | 6f 75 74 20 74 6f 20 74 |copying |out to t|
|00004c30| 68 65 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |he docum|entation|
|00004c40| 20 66 69 6c 65 2c 20 77 | 69 74 68 0a 70 72 6f 74 | file, w|ith.prot|
|00004c50| 65 63 74 69 6f 6e 20 61 | 6e 64 20 63 72 6f 73 73 |ection a|nd cross|
|00004c60| 2d 72 65 66 65 72 65 6e | 63 65 20 69 6e 66 6f 72 |-referen|ce infor|
|00004c70| 6d 61 74 69 6f 6e 20 66 | 6f 72 20 61 6c 6c 20 74 |mation f|or all t|
|00004c80| 68 65 20 73 63 72 61 70 | 73 2e 0a 5c 69 74 65 6d |he scrap|s..\item|
|00004c90| 20 54 72 61 76 65 72 73 | 65 20 74 68 65 20 6c 69 | Travers|e the li|
|00004ca0| 73 74 20 6f 66 20 66 69 | 6c 65 73 20 6e 61 6d 65 |st of fi|les name|
|00004cb0| 73 2e 20 46 6f 72 20 65 | 61 63 68 20 66 69 6c 65 |s. For e|ach file|
|00004cc0| 20 6e 61 6d 65 3a 0a 5c | 62 65 67 69 6e 7b 65 6e | name:.\|begin{en|
|00004cd0| 75 6d 65 72 61 74 65 7d | 0a 5c 69 74 65 6d 20 44 |umerate}|.\item D|
|00004ce0| 75 6d 70 20 61 6c 6c 20 | 74 68 65 20 64 65 66 69 |ump all |the defi|
|00004cf0| 6e 69 6e 67 20 73 63 72 | 61 70 73 20 69 6e 74 6f |ning scr|aps into|
|00004d00| 20 61 20 74 65 6d 70 6f | 72 61 72 79 20 66 69 6c | a tempo|rary fil|
|00004d10| 65 2e 20 0a 5c 69 74 65 | 6d 20 49 66 20 74 68 65 |e. .\ite|m If the|
|00004d20| 20 66 69 6c 65 20 61 6c | 72 65 61 64 79 20 65 78 | file al|ready ex|
|00004d30| 69 73 74 73 20 61 6e 64 | 20 69 73 20 75 6e 63 68 |ists and| is unch|
|00004d40| 61 6e 67 65 64 2c 20 64 | 65 6c 65 74 65 20 74 68 |anged, d|elete th|
|00004d50| 65 0a 74 65 6d 70 6f 72 | 61 72 79 20 66 69 6c 65 |e.tempor|ary file|
|00004d60| 3b 20 6f 74 68 65 72 77 | 69 73 65 2c 20 72 65 6e |; otherw|ise, ren|
|00004d70| 61 6d 65 20 74 68 65 20 | 74 65 6d 70 6f 72 61 72 |ame the |temporar|
|00004d80| 79 20 66 69 6c 65 2e 0a | 5c 65 6e 64 7b 65 6e 75 |y file..|\end{enu|
|00004d90| 6d 65 72 61 74 65 7d 0a | 5c 65 6e 64 7b 65 6e 75 |merate}.|\end{enu|
|00004da0| 6d 65 72 61 74 65 7d 0a | 0a 0a 5c 73 65 63 74 69 |merate}.|..\secti|
|00004db0| 6f 6e 7b 46 69 6c 65 73 | 7d 0a 0a 49 20 68 61 76 |on{Files|}..I hav|
|00004dc0| 65 20 64 69 76 69 64 65 | 64 20 74 68 65 20 70 72 |e divide|d the pr|
|00004dd0| 6f 67 72 61 6d 20 69 6e | 74 6f 20 73 65 76 65 72 |ogram in|to sever|
|00004de0| 61 6c 20 66 69 6c 65 73 | 20 66 6f 72 20 71 75 69 |al files| for qui|
|00004df0| 63 6b 65 72 0a 72 65 63 | 6f 6d 70 69 6c 61 74 69 |cker.rec|ompilati|
|00004e00| 6f 6e 20 64 75 72 69 6e | 67 20 64 65 76 65 6c 6f |on durin|g develo|
|00004e10| 70 6d 65 6e 74 2e 0a 40 | 6f 20 67 6c 6f 62 61 6c |pment..@|o global|
|00004e20| 2e 68 0a 40 7b 40 3c 49 | 6e 63 6c 75 64 65 20 66 |.h.@{@<I|nclude f|
|00004e30| 69 6c 65 73 40 3e 0a 40 | 3c 54 79 70 65 20 64 65 |iles@>.@|<Type de|
|00004e40| 63 6c 61 72 61 74 69 6f | 6e 73 40 3e 0a 40 3c 47 |claratio|ns@>.@<G|
|00004e50| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 20 64 |lobal va|riable d|
|00004e60| 65 63 6c 61 72 61 74 69 | 6f 6e 73 40 3e 0a 40 3c |eclarati|ons@>.@<|
|00004e70| 46 75 6e 63 74 69 6f 6e | 20 70 72 6f 74 6f 74 79 |Function| prototy|
|00004e80| 70 65 73 40 3e 0a 40 7d | 0a 0a 57 65 27 6c 6c 20 |pes@>.@}|..We'll |
|00004e90| 6e 65 65 64 20 61 74 20 | 6c 65 61 73 74 20 74 68 |need at |least th|
|00004ea0| 72 65 65 20 6f 66 20 74 | 68 65 20 73 74 61 6e 64 |ree of t|he stand|
|00004eb0| 61 72 64 20 73 79 73 74 | 65 6d 20 69 6e 63 6c 75 |ard syst|em inclu|
|00004ec0| 64 65 20 66 69 6c 65 73 | 2e 0a 40 64 20 49 6e 63 |de files|..@d Inc|
|00004ed0| 6c 75 64 65 20 66 69 6c | 65 73 0a 40 7b 23 69 6e |lude fil|es.@{#in|
|00004ee0| 63 6c 75 64 65 20 3c 73 | 74 64 6c 69 62 2e 68 3e |clude <s|tdlib.h>|
|00004ef0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |.#includ|e <stdio|
|00004f00| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.h>.#inc|lude <st|
|00004f10| 72 69 6e 67 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ring.h>.|#include|
|00004f20| 20 3c 63 74 79 70 65 2e | 68 3e 0a 40 7c 20 46 49 | <ctype.|h>.@| FI|
|00004f30| 4c 45 20 73 74 64 65 72 | 72 20 65 78 69 74 20 66 |LE stder|r exit f|
|00004f40| 70 72 69 6e 74 66 20 66 | 70 75 74 73 20 66 6f 70 |printf f|puts fop|
|00004f50| 65 6e 20 66 63 6c 6f 73 | 65 20 67 65 74 63 20 70 |en fclos|e getc p|
|00004f60| 75 74 63 20 73 74 72 6c | 65 6e 0a 74 6f 75 70 70 |utc strl|en.toupp|
|00004f70| 65 72 20 69 73 75 70 70 | 65 72 20 69 73 6c 6f 77 |er isupp|er islow|
|00004f80| 65 72 20 69 73 67 72 61 | 70 68 20 69 73 73 70 61 |er isgra|ph isspa|
|00004f90| 63 65 20 74 65 6d 70 6e | 61 6d 20 72 65 6d 6f 76 |ce tempn|am remov|
|00004fa0| 65 20 6d 61 6c 6c 6f 63 | 20 73 69 7a 65 5f 74 20 |e malloc| size_t |
|00004fb0| 40 7d 0a 0a 5c 6e 65 77 | 70 61 67 65 0a 5c 6e 6f |@}..\new|page.\no|
|00004fc0| 69 6e 64 65 6e 74 0a 49 | 20 61 6c 73 6f 20 6c 69 |indent.I| also li|
|00004fd0| 6b 65 20 74 6f 20 75 73 | 65 20 5c 76 65 72 62 7c |ke to us|e \verb||
|00004fe0| 54 52 55 45 7c 20 61 6e | 64 20 5c 76 65 72 62 7c |TRUE| an|d \verb||
|00004ff0| 46 41 4c 53 45 7c 20 69 | 6e 20 6d 79 20 63 6f 64 |FALSE| i|n my cod|
|00005000| 65 2e 0a 49 27 64 20 75 | 73 65 20 61 6e 20 5c 76 |e..I'd u|se an \v|
|00005010| 65 72 62 7c 65 6e 75 6d | 7c 20 68 65 72 65 2c 20 |erb|enum|| here, |
|00005020| 65 78 63 65 70 74 20 74 | 68 61 74 20 73 6f 6d 65 |except t|hat some|
|00005030| 20 73 79 73 74 65 6d 73 | 20 73 65 65 6d 20 74 6f | systems| seem to|
|00005040| 20 70 72 6f 76 69 64 65 | 0a 64 65 66 69 6e 69 74 | provide|.definit|
|00005050| 69 6f 6e 73 20 6f 66 20 | 5c 76 65 72 62 7c 54 52 |ions of |\verb|TR|
|00005060| 55 45 7c 20 61 6e 64 20 | 5c 76 65 72 62 7c 46 41 |UE| and |\verb|FA|
|00005070| 4c 53 45 7c 20 62 65 20 | 64 65 66 61 75 6c 74 2e |LSE| be |default.|
|00005080| 20 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 0a | The fo|llowing.|
|00005090| 63 6f 64 65 20 73 65 65 | 6d 73 20 74 6f 20 77 6f |code see|ms to wo|
|000050a0| 72 6b 20 6f 6e 20 61 6c | 6c 20 74 68 65 20 6c 6f |rk on al|l the lo|
|000050b0| 63 61 6c 20 73 79 73 74 | 65 6d 73 2e 0a 40 64 20 |cal syst|ems..@d |
|000050c0| 54 79 70 65 20 64 65 63 | 2e 2e 2e 0a 40 7b 23 69 |Type dec|....@{#i|
|000050d0| 66 6e 64 65 66 20 46 41 | 4c 53 45 0a 23 64 65 66 |fndef FA|LSE.#def|
|000050e0| 69 6e 65 20 46 41 4c 53 | 45 20 30 0a 23 65 6e 64 |ine FALS|E 0.#end|
|000050f0| 69 66 0a 23 69 66 6e 64 | 65 66 20 54 52 55 45 0a |if.#ifnd|ef TRUE.|
|00005100| 23 64 65 66 69 6e 65 20 | 54 52 55 45 20 31 0a 23 |#define |TRUE 1.#|
|00005110| 65 6e 64 69 66 0a 40 7c | 20 46 41 4c 53 45 20 54 |endif.@|| FALSE T|
|00005120| 52 55 45 20 40 7d 0a 0a | 0a 5c 73 75 62 73 65 63 |RUE @}..|.\subsec|
|00005130| 74 69 6f 6e 7b 54 68 65 | 20 4d 61 69 6e 20 46 69 |tion{The| Main Fi|
|00005140| 6c 65 73 7d 0a 0a 54 68 | 65 20 63 6f 64 65 20 69 |les}..Th|e code i|
|00005150| 73 20 64 69 76 69 64 65 | 64 20 69 6e 74 6f 20 66 |s divide|d into f|
|00005160| 6f 75 72 20 6d 61 69 6e | 20 66 69 6c 65 73 20 28 |our main| files (|
|00005170| 69 6e 74 72 6f 64 75 63 | 65 64 20 68 65 72 65 29 |introduc|ed here)|
|00005180| 20 61 6e 64 20 66 69 76 | 65 0a 73 75 70 70 6f 72 | and fiv|e.suppor|
|00005190| 74 20 66 69 6c 65 73 20 | 28 69 6e 74 72 6f 64 75 |t files |(introdu|
|000051a0| 63 65 64 20 69 6e 20 74 | 68 65 20 6e 65 78 74 20 |ced in t|he next |
|000051b0| 73 65 63 74 69 6f 6e 29 | 2e 0a 54 68 65 20 66 69 |section)|..The fi|
|000051c0| 6c 65 20 5c 76 65 72 62 | 7c 6d 61 69 6e 2e 63 7c |le \verb||main.c||
|000051d0| 20 77 69 6c 6c 20 63 6f | 6e 74 61 69 6e 20 74 68 | will co|ntain th|
|000051e0| 65 20 64 72 69 76 65 72 | 20 66 6f 72 20 74 68 65 |e driver| for the|
|000051f0| 20 77 68 6f 6c 65 20 70 | 72 6f 67 72 61 6d 0a 28 | whole p|rogram.(|
|00005200| 73 65 65 20 53 65 63 74 | 69 6f 6e 7e 5c 72 65 66 |see Sect|ion~\ref|
|00005210| 7b 6d 61 69 6e 2d 72 6f | 75 74 69 6e 65 7d 29 2e |{main-ro|utine}).|
|00005220| 0a 40 6f 20 6d 61 69 6e | 2e 63 0a 40 7b 23 69 6e |.@o main|.c.@{#in|
|00005230| 63 6c 75 64 65 20 22 67 | 6c 6f 62 61 6c 2e 68 22 |clude "g|lobal.h"|
|00005240| 0a 40 7d 0a 0a 54 68 65 | 20 66 69 72 73 74 20 70 |.@}..The| first p|
|00005250| 61 73 73 20 6f 76 65 72 | 20 74 68 65 20 73 6f 75 |ass over| the sou|
|00005260| 72 63 65 20 66 69 6c 65 | 20 69 73 20 63 6f 6e 74 |rce file| is cont|
|00005270| 61 69 6e 65 64 20 69 6e | 20 5c 76 65 72 62 7c 70 |ained in| \verb|p|
|00005280| 61 73 73 31 2e 63 7c 2e | 0a 49 74 20 68 61 6e 64 |ass1.c|.|.It hand|
|00005290| 6c 65 73 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 6f |les coll|ection o|
|000052a0| 66 20 61 6c 6c 20 74 68 | 65 20 66 69 6c 65 20 6e |f all th|e file n|
|000052b0| 61 6d 65 73 2c 20 6d 61 | 63 72 6f 73 20 6e 61 6d |ames, ma|cros nam|
|000052c0| 65 73 2c 20 61 6e 64 20 | 73 63 72 61 70 73 0a 28 |es, and |scraps.(|
|000052d0| 73 65 65 20 53 65 63 74 | 69 6f 6e 7e 5c 72 65 66 |see Sect|ion~\ref|
|000052e0| 7b 70 61 73 73 2d 6f 6e | 65 7d 29 2e 0a 40 6f 20 |{pass-on|e})..@o |
|000052f0| 70 61 73 73 31 2e 63 0a | 40 7b 23 69 6e 63 6c 75 |pass1.c.|@{#inclu|
|00005300| 64 65 20 22 67 6c 6f 62 | 61 6c 2e 68 22 0a 40 7d |de "glob|al.h".@}|
|00005310| 0a 0a 54 68 65 20 5c 76 | 65 72 62 7c 2e 74 65 78 |..The \v|erb|.tex|
|00005320| 7c 20 66 69 6c 65 20 69 | 73 20 63 72 65 61 74 65 || file i|s create|
|00005330| 64 20 64 75 72 69 6e 67 | 20 61 20 73 65 63 6f 6e |d during| a secon|
|00005340| 64 20 70 61 73 73 20 6f | 76 65 72 20 74 68 65 20 |d pass o|ver the |
|00005350| 73 6f 75 72 63 65 0a 66 | 69 6c 65 2e 20 54 68 65 |source.f|ile. The|
|00005360| 20 66 69 6c 65 20 5c 76 | 65 72 62 7c 6c 61 74 65 | file \v|erb|late|
|00005370| 78 2e 63 7c 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |x.c| con|tains th|
|00005380| 65 20 63 6f 64 65 20 63 | 6f 6e 74 72 6f 6c 6c 69 |e code c|ontrolli|
|00005390| 6e 67 20 74 68 65 0a 63 | 6f 6e 73 74 72 75 63 74 |ng the.c|onstruct|
|000053a0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 5c 76 65 72 62 |ion of t|he \verb|
|000053b0| 7c 2e 74 65 78 7c 20 66 | 69 6c 65 20 0a 28 73 65 ||.tex| f|ile .(se|
|000053c0| 65 20 53 65 63 74 69 6f | 6e 7e 5c 72 65 66 7b 6c |e Sectio|n~\ref{l|
|000053d0| 61 74 65 78 2d 66 69 6c | 65 7d 29 2e 0a 40 6f 20 |atex-fil|e})..@o |
|000053e0| 6c 61 74 65 78 2e 63 0a | 40 7b 23 69 6e 63 6c 75 |latex.c.|@{#inclu|
|000053f0| 64 65 20 22 67 6c 6f 62 | 61 6c 2e 68 22 0a 40 7d |de "glob|al.h".@}|
|00005400| 0a 0a 54 68 65 20 66 69 | 6c 65 20 5c 76 65 72 62 |..The fi|le \verb|
|00005410| 7c 68 74 6d 6c 2e 63 7c | 20 63 6f 6e 74 61 69 6e ||html.c|| contain|
|00005420| 73 20 74 68 65 20 63 6f | 64 65 20 63 6f 6e 74 72 |s the co|de contr|
|00005430| 6f 6c 6c 69 6e 67 20 74 | 68 65 0a 63 6f 6e 73 74 |olling t|he.const|
|00005440| 72 75 63 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 5c |ruction |of the \|
|00005450| 76 65 72 62 7c 2e 74 65 | 78 7c 20 66 69 6c 65 20 |verb|.te|x| file |
|00005460| 61 70 70 72 6f 70 72 69 | 61 74 65 20 66 6f 72 20 |appropri|ate for |
|00005470| 75 73 65 20 77 69 74 68 | 20 7b 5c 4c 61 54 65 58 |use with| {\LaTeX|
|00005480| 7d 32 48 54 4d 4c 0a 28 | 73 65 65 20 53 65 63 74 |}2HTML.(|see Sect|
|00005490| 69 6f 6e 7e 5c 72 65 66 | 7b 68 74 6d 6c 2d 66 69 |ion~\ref|{html-fi|
|000054a0| 6c 65 7d 29 2e 0a 40 6f | 20 68 74 6d 6c 2e 63 0a |le})..@o| html.c.|
|000054b0| 40 7b 23 69 6e 63 6c 75 | 64 65 20 22 67 6c 6f 62 |@{#inclu|de "glob|
|000054c0| 61 6c 2e 68 22 0a 40 7d | 0a 0a 54 68 65 20 63 6f |al.h".@}|..The co|
|000054d0| 64 65 20 63 6f 6e 74 72 | 6f 6c 6c 69 6e 67 20 74 |de contr|olling t|
|000054e0| 68 65 20 63 72 65 61 74 | 69 6f 6e 20 6f 66 20 74 |he creat|ion of t|
|000054f0| 68 65 20 6f 75 74 70 75 | 74 20 66 69 6c 65 73 20 |he outpu|t files |
|00005500| 69 73 20 69 6e 20 5c 76 | 65 72 62 7c 6f 75 74 70 |is in \v|erb|outp|
|00005510| 75 74 2e 63 7c 0a 28 73 | 65 65 20 53 65 63 74 69 |ut.c|.(s|ee Secti|
|00005520| 6f 6e 7e 5c 72 65 66 7b | 6f 75 74 70 75 74 2d 66 |on~\ref{|output-f|
|00005530| 69 6c 65 73 7d 29 2e 0a | 40 6f 20 6f 75 74 70 75 |iles})..|@o outpu|
|00005540| 74 2e 63 0a 40 7b 23 69 | 6e 63 6c 75 64 65 20 22 |t.c.@{#i|nclude "|
|00005550| 67 6c 6f 62 61 6c 2e 68 | 22 0a 40 7d 0a 0a 5c 6e |global.h|".@}..\n|
|00005560| 65 77 70 61 67 65 0a 5c | 73 75 62 73 65 63 74 69 |ewpage.\|subsecti|
|00005570| 6f 6e 7b 53 75 70 70 6f | 72 74 20 46 69 6c 65 73 |on{Suppo|rt Files|
|00005580| 7d 0a 0a 54 68 65 20 73 | 75 70 70 6f 72 74 20 66 |}..The s|upport f|
|00005590| 69 6c 65 73 20 63 6f 6e | 74 61 69 6e 20 61 20 76 |iles con|tain a v|
|000055a0| 61 72 69 65 74 79 20 6f | 66 20 73 75 70 70 6f 72 |ariety o|f suppor|
|000055b0| 74 20 72 6f 75 74 69 6e | 65 73 20 75 73 65 64 20 |t routin|es used |
|000055c0| 74 6f 20 64 65 66 69 6e | 65 0a 61 6e 64 20 6d 61 |to defin|e.and ma|
|000055d0| 6e 69 70 75 6c 61 74 65 | 20 74 68 65 20 6d 61 6a |nipulate| the maj|
|000055e0| 6f 72 20 64 61 74 61 20 | 61 62 73 74 72 61 63 74 |or data |abstract|
|000055f0| 69 6f 6e 73 2e 0a 54 68 | 65 20 66 69 6c 65 20 5c |ions..Th|e file \|
|00005600| 76 65 72 62 7c 69 6e 70 | 75 74 2e 63 7c 20 68 6f |verb|inp|ut.c| ho|
|00005610| 6c 64 73 20 61 6c 6c 20 | 74 68 65 20 72 6f 75 74 |lds all |the rout|
|00005620| 69 6e 65 73 20 75 73 65 | 64 20 66 6f 72 20 72 65 |ines use|d for re|
|00005630| 66 65 72 72 69 6e 67 20 | 74 6f 0a 73 6f 75 72 63 |ferring |to.sourc|
|00005640| 65 20 66 69 6c 65 73 20 | 28 73 65 65 20 53 65 63 |e files |(see Sec|
|00005650| 74 69 6f 6e 7e 5c 72 65 | 66 7b 73 6f 75 72 63 65 |tion~\re|f{source|
|00005660| 2d 66 69 6c 65 73 7d 29 | 2e 0a 40 6f 20 69 6e 70 |-files})|..@o inp|
|00005670| 75 74 2e 63 0a 40 7b 23 | 69 6e 63 6c 75 64 65 20 |ut.c.@{#|include |
|00005680| 22 67 6c 6f 62 61 6c 2e | 68 22 0a 40 7d 0a 0a 43 |"global.|h".@}..C|
|00005690| 72 65 61 74 69 6f 6e 20 | 61 6e 64 20 6c 6f 6f 6b |reation |and look|
|000056a0| 75 70 20 6f 66 20 73 63 | 72 61 70 73 20 69 73 20 |up of sc|raps is |
|000056b0| 68 61 6e 64 6c 65 64 20 | 62 79 20 72 6f 75 74 69 |handled |by routi|
|000056c0| 6e 65 73 20 69 6e 20 5c | 76 65 72 62 7c 73 63 72 |nes in \|verb|scr|
|000056d0| 61 70 73 2e 63 7c 0a 28 | 73 65 65 20 53 65 63 74 |aps.c|.(|see Sect|
|000056e0| 69 6f 6e 7e 5c 72 65 66 | 7b 73 63 72 61 70 73 7d |ion~\ref|{scraps}|
|000056f0| 29 2e 0a 40 6f 20 73 63 | 72 61 70 73 2e 63 0a 40 |)..@o sc|raps.c.@|
|00005700| 7b 23 69 6e 63 6c 75 64 | 65 20 22 67 6c 6f 62 61 |{#includ|e "globa|
|00005710| 6c 2e 68 22 0a 40 7d 0a | 0a 0a 54 68 65 20 68 61 |l.h".@}.|..The ha|
|00005720| 6e 64 6c 69 6e 67 20 6f | 66 20 66 69 6c 65 20 6e |ndling o|f file n|
|00005730| 61 6d 65 73 20 61 6e 64 | 20 6d 61 63 72 6f 20 6e |ames and| macro n|
|00005740| 61 6d 65 73 20 69 73 20 | 64 65 74 61 69 6c 65 64 |ames is |detailed|
|00005750| 20 69 6e 20 5c 76 65 72 | 62 7c 6e 61 6d 65 73 2e | in \ver|b|names.|
|00005760| 63 7c 0a 28 73 65 65 20 | 53 65 63 74 69 6f 6e 7e |c|.(see |Section~|
|00005770| 5c 72 65 66 7b 6e 61 6d | 65 73 7d 29 2e 0a 40 6f |\ref{nam|es})..@o|
|00005780| 20 6e 61 6d 65 73 2e 63 | 0a 40 7b 23 69 6e 63 6c | names.c|.@{#incl|
|00005790| 75 64 65 20 22 67 6c 6f | 62 61 6c 2e 68 22 0a 40 |ude "glo|bal.h".@|
|000057a0| 7d 0a 0a 4d 65 6d 6f 72 | 79 20 61 6c 6c 6f 63 61 |}..Memor|y alloca|
|000057b0| 74 69 6f 6e 20 61 6e 64 | 20 64 65 61 6c 6c 6f 63 |tion and| dealloc|
|000057c0| 61 74 69 6f 6e 20 69 73 | 20 68 61 6e 64 6c 65 64 |ation is| handled|
|000057d0| 20 62 79 20 72 6f 75 74 | 69 6e 65 73 20 69 6e 20 | by rout|ines in |
|000057e0| 5c 76 65 72 62 7c 61 72 | 65 6e 61 2e 63 7c 0a 28 |\verb|ar|ena.c|.(|
|000057f0| 73 65 65 20 53 65 63 74 | 69 6f 6e 7e 5c 72 65 66 |see Sect|ion~\ref|
|00005800| 7b 6d 65 6d 6f 72 79 2d | 6d 61 6e 61 67 65 6d 65 |{memory-|manageme|
|00005810| 6e 74 7d 29 2e 0a 40 6f | 20 61 72 65 6e 61 2e 63 |nt})..@o| arena.c|
|00005820| 0a 40 7b 23 69 6e 63 6c | 75 64 65 20 22 67 6c 6f |.@{#incl|ude "glo|
|00005830| 62 61 6c 2e 68 22 0a 40 | 7d 0a 0a 46 69 6e 61 6c |bal.h".@|}..Final|
|00005840| 6c 79 2c 20 66 6f 72 20 | 62 65 73 74 20 70 6f 72 |ly, for |best por|
|00005850| 74 61 62 69 6c 69 74 79 | 2c 20 49 20 73 65 65 6d |tability|, I seem|
|00005860| 20 74 6f 20 6e 65 65 64 | 20 61 20 66 69 6c 65 20 | to need| a file |
|00005870| 63 6f 6e 74 61 69 6e 69 | 6e 67 0a 28 75 73 65 6c |containi|ng.(usel|
|00005880| 65 73 73 21 29 20 64 65 | 66 69 6e 69 74 69 6f 6e |ess!) de|finition|
|00005890| 73 20 6f 66 20 61 6c 6c | 20 74 68 65 20 67 6c 6f |s of all| the glo|
|000058a0| 62 61 6c 20 76 61 72 69 | 61 62 6c 65 73 2e 0a 40 |bal vari|ables..@|
|000058b0| 6f 20 67 6c 6f 62 61 6c | 2e 63 0a 40 7b 23 69 6e |o global|.c.@{#in|
|000058c0| 63 6c 75 64 65 20 22 67 | 6c 6f 62 61 6c 2e 68 22 |clude "g|lobal.h"|
|000058d0| 0a 40 3c 47 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 |.@<Globa|l variab|
|000058e0| 6c 65 20 64 65 66 69 6e | 69 74 69 6f 6e 73 40 3e |le defin|itions@>|
|000058f0| 0a 40 7d 0a 0a 5c 73 65 | 63 74 69 6f 6e 7b 54 68 |.@}..\se|ction{Th|
|00005900| 65 20 4d 61 69 6e 20 52 | 6f 75 74 69 6e 65 7d 20 |e Main R|outine} |
|00005910| 5c 6c 61 62 65 6c 7b 6d | 61 69 6e 2d 72 6f 75 74 |\label{m|ain-rout|
|00005920| 69 6e 65 7d 0a 0a 54 68 | 65 20 6d 61 69 6e 20 72 |ine}..Th|e main r|
|00005930| 6f 75 74 69 6e 65 20 69 | 73 20 71 75 69 74 65 20 |outine i|s quite |
|00005940| 73 69 6d 70 6c 65 20 69 | 6e 20 73 74 72 75 63 74 |simple i|n struct|
|00005950| 75 72 65 2e 0a 49 74 20 | 77 61 64 65 73 20 74 68 |ure..It |wades th|
|00005960| 72 6f 75 67 68 20 74 68 | 65 20 6f 70 74 69 6f 6e |rough th|e option|
|00005970| 61 6c 20 63 6f 6d 6d 61 | 6e 64 2d 6c 69 6e 65 20 |al comma|nd-line |
|00005980| 61 72 67 75 6d 65 6e 74 | 73 2c 0a 74 68 65 6e 20 |argument|s,.then |
|00005990| 68 61 6e 64 6c 65 73 20 | 61 6e 79 20 66 69 6c 65 |handles |any file|
|000059a0| 73 20 6c 69 73 74 65 64 | 20 6f 6e 20 74 68 65 20 |s listed| on the |
|000059b0| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 2e 0a 40 6f |command |line..@o|
|000059c0| 20 6d 61 69 6e 2e 63 0a | 40 7b 69 6e 74 20 6d 61 | main.c.|@{int ma|
|000059d0| 69 6e 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 20 |in(argc,| argv). |
|000059e0| 20 20 20 20 69 6e 74 20 | 61 72 67 63 3b 0a 20 20 | int |argc;. |
|000059f0| 20 20 20 63 68 61 72 20 | 2a 2a 61 72 67 76 3b 0a | char |**argv;.|
|00005a00| 7b 0a 20 20 69 6e 74 20 | 61 72 67 20 3d 20 31 3b |{. int |arg = 1;|
|00005a10| 0a 20 20 40 3c 49 6e 74 | 65 72 70 72 65 74 20 63 |. @<Int|erpret c|
|00005a20| 6f 6d 6d 61 6e 64 2d 6c | 69 6e 65 20 61 72 67 75 |ommand-l|ine argu|
|00005a30| 6d 65 6e 74 73 40 3e 0a | 20 20 40 3c 50 72 6f 63 |ments@>.| @<Proc|
|00005a40| 65 73 73 20 74 68 65 20 | 72 65 6d 61 69 6e 69 6e |ess the |remainin|
|00005a50| 67 20 61 72 67 75 6d 65 | 6e 74 73 20 28 66 69 6c |g argume|nts (fil|
|00005a60| 65 20 6e 61 6d 65 73 29 | 40 3e 0a 20 20 65 78 69 |e names)|@>. exi|
|00005a70| 74 28 30 29 3b 0a 7d 0a | 40 7c 20 6d 61 69 6e 20 |t(0);.}.|@| main |
|00005a80| 40 7d 0a 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |@}...\su|bsection|
|00005a90| 7b 43 6f 6d 6d 61 6e 64 | 2d 4c 69 6e 65 20 41 72 |{Command|-Line Ar|
|00005aa0| 67 75 6d 65 6e 74 73 7d | 0a 0a 54 68 65 72 65 20 |guments}|..There |
|00005ab0| 61 72 65 20 66 69 76 65 | 20 70 6f 73 73 69 62 6c |are five| possibl|
|00005ac0| 65 20 63 6f 6d 6d 61 6e | 64 2d 6c 69 6e 65 20 61 |e comman|d-line a|
|00005ad0| 72 67 75 6d 65 6e 74 73 | 3a 0a 5c 62 65 67 69 6e |rguments|:.\begin|
|00005ae0| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0a 5c 69 |{descrip|tion}.\i|
|00005af0| 74 65 6d 5b 5c 74 74 20 | 2d 74 5d 20 53 75 70 70 |tem[\tt |-t] Supp|
|00005b00| 72 65 73 73 65 73 20 67 | 65 6e 65 72 61 74 69 6f |resses g|eneratio|
|00005b10| 6e 20 6f 66 20 74 68 65 | 20 7b 5c 74 74 20 2e 74 |n of the| {\tt .t|
|00005b20| 65 78 7d 20 66 69 6c 65 | 2e 0a 5c 69 74 65 6d 5b |ex} file|..\item[|
|00005b30| 5c 74 74 20 2d 6f 5d 20 | 53 75 70 70 72 65 73 73 |\tt -o] |Suppress|
|00005b40| 65 73 20 67 65 6e 65 72 | 61 74 69 6f 6e 20 6f 66 |es gener|ation of|
|00005b50| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 69 6c 65 | the out|put file|
|00005b60| 73 2e 0a 5c 69 74 65 6d | 5b 5c 74 74 20 2d 63 5d |s..\item|[\tt -c]|
|00005b70| 20 46 6f 72 63 65 73 20 | 6f 75 74 70 75 74 20 66 | Forces |output f|
|00005b80| 69 6c 65 73 20 74 6f 20 | 6f 76 65 72 77 72 69 74 |iles to |overwrit|
|00005b90| 65 20 6f 6c 64 20 66 69 | 6c 65 73 20 6f 66 20 74 |e old fi|les of t|
|00005ba0| 68 65 20 73 61 6d 65 0a | 20 20 6e 61 6d 65 20 77 |he same.| name w|
|00005bb0| 69 74 68 6f 75 74 20 63 | 6f 6d 70 61 72 69 6e 67 |ithout c|omparing|
|00005bc0| 20 66 6f 72 20 65 71 75 | 61 6c 69 74 79 20 66 69 | for equ|ality fi|
|00005bd0| 72 73 74 2e 0a 5c 69 74 | 65 6d 5b 5c 74 74 20 2d |rst..\it|em[\tt -|
|00005be0| 76 5d 20 54 68 65 20 76 | 65 72 62 6f 73 65 20 66 |v] The v|erbose f|
|00005bf0| 6c 61 67 2e 20 46 6f 72 | 63 65 73 20 6f 75 74 70 |lag. For|ces outp|
|00005c00| 75 74 20 6f 66 20 70 72 | 6f 67 72 65 73 73 20 72 |ut of pr|ogress r|
|00005c10| 65 70 6f 72 74 73 2e 0a | 5c 69 74 65 6d 5b 5c 74 |eports..|\item[\t|
|00005c20| 74 20 2d 6e 5d 20 46 6f | 72 63 65 73 20 73 65 71 |t -n] Fo|rces seq|
|00005c30| 75 65 6e 74 69 61 6c 20 | 6e 75 6d 62 65 72 69 6e |uential |numberin|
|00005c40| 67 20 6f 66 20 73 63 72 | 61 70 73 20 28 69 6e 73 |g of scr|aps (ins|
|00005c50| 74 65 61 64 20 6f 66 20 | 70 61 67 65 0a 20 20 6e |tead of |page. n|
|00005c60| 75 6d 62 65 72 73 29 2e | 0a 5c 65 6e 64 7b 64 65 |umbers).|.\end{de|
|00005c70| 73 63 72 69 70 74 69 6f | 6e 7d 0a 0a 5c 6e 6f 69 |scriptio|n}..\noi|
|00005c80| 6e 64 65 6e 74 0a 47 6c | 6f 62 61 6c 20 66 6c 61 |ndent.Gl|obal fla|
|00005c90| 67 73 20 61 72 65 20 64 | 65 63 6c 61 72 65 64 20 |gs are d|eclared |
|00005ca0| 66 6f 72 20 65 61 63 68 | 20 6f 66 20 74 68 65 20 |for each| of the |
|00005cb0| 61 72 67 75 6d 65 6e 74 | 73 2e 0a 40 64 20 47 6c |argument|s..@d Gl|
|00005cc0| 6f 62 61 6c 20 76 61 72 | 69 61 62 6c 65 20 64 65 |obal var|iable de|
|00005cd0| 63 2e 2e 2e 0a 40 7b 65 | 78 74 65 72 6e 20 69 6e |c....@{e|xtern in|
|00005ce0| 74 20 74 65 78 5f 66 6c | 61 67 3b 20 20 20 20 20 |t tex_fl|ag; |
|00005cf0| 20 2f 2a 20 69 66 20 46 | 41 4c 53 45 2c 20 64 6f | /* if F|ALSE, do|
|00005d00| 6e 27 74 20 65 6d 69 74 | 20 74 68 65 20 64 6f 63 |n't emit| the doc|
|00005d10| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 66 69 6c 65 20 |umentati|on file |
|00005d20| 2a 2f 0a 65 78 74 65 72 | 6e 20 69 6e 74 20 68 74 |*/.exter|n int ht|
|00005d30| 6d 6c 5f 66 6c 61 67 3b | 20 20 20 20 20 2f 2a 20 |ml_flag;| /* |
|00005d40| 69 66 20 54 52 55 45 2c | 20 65 6d 69 74 20 48 54 |if TRUE,| emit HT|
|00005d50| 4d 4c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 4c 61 |ML inste|ad of La|
|00005d60| 54 65 58 20 73 63 72 61 | 70 73 2e 20 2a 2f 0a 65 |TeX scra|ps. */.e|
|00005d70| 78 74 65 72 6e 20 69 6e | 74 20 6f 75 74 70 75 74 |xtern in|t output|
|00005d80| 5f 66 6c 61 67 3b 20 20 | 20 2f 2a 20 69 66 20 46 |_flag; | /* if F|
|00005d90| 41 4c 53 45 2c 20 64 6f | 6e 27 74 20 65 6d 69 74 |ALSE, do|n't emit|
|00005da0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 69 6c 65 | the out|put file|
|00005db0| 73 20 2a 2f 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |s */.ext|ern int |
|00005dc0| 63 6f 6d 70 61 72 65 5f | 66 6c 61 67 3b 20 20 2f |compare_|flag; /|
|00005dd0| 2a 20 69 66 20 46 41 4c | 53 45 2c 20 6f 76 65 72 |* if FAL|SE, over|
|00005de0| 77 72 69 74 65 20 77 69 | 74 68 6f 75 74 20 63 6f |write wi|thout co|
|00005df0| 6d 70 61 72 69 73 6f 6e | 20 2a 2f 0a 65 78 74 65 |mparison| */.exte|
|00005e00| 72 6e 20 69 6e 74 20 76 | 65 72 62 6f 73 65 5f 66 |rn int v|erbose_f|
|00005e10| 6c 61 67 3b 20 20 2f 2a | 20 69 66 20 54 52 55 45 |lag; /*| if TRUE|
|00005e20| 2c 20 77 72 69 74 65 20 | 70 72 6f 67 72 65 73 73 |, write |progress|
|00005e30| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 2a 2f 0a | informa|tion */.|
|00005e40| 65 78 74 65 72 6e 20 69 | 6e 74 20 6e 75 6d 62 65 |extern i|nt numbe|
|00005e50| 72 5f 66 6c 61 67 3b 20 | 20 20 2f 2a 20 69 66 20 |r_flag; | /* if |
|00005e60| 54 52 55 45 2c 20 75 73 | 65 20 61 20 73 65 71 75 |TRUE, us|e a sequ|
|00005e70| 65 6e 74 69 61 6c 20 6e | 75 6d 62 65 72 69 6e 67 |ential n|umbering|
|00005e80| 20 73 63 68 65 6d 65 20 | 2a 2f 0a 40 7c 20 74 65 | scheme |*/.@| te|
|00005e90| 78 5f 66 6c 61 67 20 68 | 74 6d 6c 5f 66 6c 61 67 |x_flag h|tml_flag|
|00005ea0| 20 6f 75 74 70 75 74 5f | 66 6c 61 67 20 63 6f 6d | output_|flag com|
|00005eb0| 70 61 72 65 5f 66 6c 61 | 67 20 76 65 72 62 6f 73 |pare_fla|g verbos|
|00005ec0| 65 5f 66 6c 61 67 20 6e | 75 6d 62 65 72 5f 66 6c |e_flag n|umber_fl|
|00005ed0| 61 67 20 40 7d 0a 0a 54 | 68 65 20 66 6c 61 67 73 |ag @}..T|he flags|
|00005ee0| 20 61 72 65 20 61 6c 6c | 20 69 6e 69 74 69 61 6c | are all| initial|
|00005ef0| 69 7a 65 64 20 66 6f 72 | 20 63 6f 72 72 65 63 74 |ized for| correct|
|00005f00| 20 64 65 66 61 75 6c 74 | 20 62 65 68 61 76 69 6f | default| behavio|
|00005f10| 72 2e 0a 0a 40 64 20 47 | 6c 6f 62 61 6c 20 76 61 |r...@d G|lobal va|
|00005f20| 72 69 61 62 6c 65 20 64 | 65 66 2e 2e 2e 0a 40 7b |riable d|ef....@{|
|00005f30| 69 6e 74 20 74 65 78 5f | 66 6c 61 67 20 3d 20 54 |int tex_|flag = T|
|00005f40| 52 55 45 3b 0a 69 6e 74 | 20 68 74 6d 6c 5f 66 6c |RUE;.int| html_fl|
|00005f50| 61 67 20 3d 20 46 41 4c | 53 45 3b 0a 69 6e 74 20 |ag = FAL|SE;.int |
|00005f60| 6f 75 74 70 75 74 5f 66 | 6c 61 67 20 3d 20 54 52 |output_f|lag = TR|
|00005f70| 55 45 3b 0a 69 6e 74 20 | 63 6f 6d 70 61 72 65 5f |UE;.int |compare_|
|00005f80| 66 6c 61 67 20 3d 20 54 | 52 55 45 3b 0a 69 6e 74 |flag = T|RUE;.int|
|00005f90| 20 76 65 72 62 6f 73 65 | 5f 66 6c 61 67 20 3d 20 | verbose|_flag = |
|00005fa0| 46 41 4c 53 45 3b 0a 69 | 6e 74 20 6e 75 6d 62 65 |FALSE;.i|nt numbe|
|00005fb0| 72 5f 66 6c 61 67 20 3d | 20 46 41 4c 53 45 3b 0a |r_flag =| FALSE;.|
|00005fc0| 40 7d 0a 0a 0a 57 65 20 | 73 61 76 65 20 74 68 65 |@}...We |save the|
|00005fd0| 20 69 6e 76 6f 63 61 74 | 69 6f 6e 20 6e 61 6d 65 | invocat|ion name|
|00005fe0| 20 6f 66 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | of the |command |
|00005ff0| 69 6e 20 61 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |in a glo|bal vari|
|00006000| 61 62 6c 65 0a 5c 76 65 | 72 62 7c 63 6f 6d 6d 61 |able.\ve|rb|comma|
|00006010| 6e 64 5f 6e 61 6d 65 7c | 20 66 6f 72 20 75 73 65 |nd_name|| for use|
|00006020| 20 69 6e 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 | in erro|r messag|
|00006030| 65 73 2e 0a 40 64 20 47 | 6c 6f 62 61 6c 20 76 61 |es..@d G|lobal va|
|00006040| 72 69 61 62 6c 65 20 64 | 65 63 2e 2e 2e 0a 40 7b |riable d|ec....@{|
|00006050| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 63 6f 6d |extern c|har *com|
|00006060| 6d 61 6e 64 5f 6e 61 6d | 65 3b 0a 40 7c 20 63 6f |mand_nam|e;.@| co|
|00006070| 6d 6d 61 6e 64 5f 6e 61 | 6d 65 20 40 7d 0a 0a 40 |mmand_na|me @}..@|
|00006080| 64 20 47 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c |d Global| variabl|
|00006090| 65 20 64 65 66 2e 2e 2e | 0a 40 7b 63 68 61 72 20 |e def...|.@{char |
|000060a0| 2a 63 6f 6d 6d 61 6e 64 | 5f 6e 61 6d 65 20 3d 20 |*command|_name = |
|000060b0| 4e 55 4c 4c 3b 0a 40 7d | 0a 0a 54 68 65 20 69 6e |NULL;.@}|..The in|
|000060c0| 76 6f 63 61 74 69 6f 6e | 20 6e 61 6d 65 20 69 73 |vocation| name is|
|000060d0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 61 6c 6c 79 20 | convent|ionally |
|000060e0| 70 61 73 73 65 64 20 69 | 6e 20 5c 76 65 72 62 7c |passed i|n \verb||
|000060f0| 61 72 67 76 5b 30 5d 7c | 2e 0a 40 64 20 49 6e 74 |argv[0]||..@d Int|
|00006100| 65 72 70 72 65 74 20 63 | 6f 6d 2e 2e 2e 0a 40 7b |erpret c|om....@{|
|00006110| 63 6f 6d 6d 61 6e 64 5f | 6e 61 6d 65 20 3d 20 61 |command_|name = a|
|00006120| 72 67 76 5b 30 5d 3b 0a | 40 7d 0a 0a 57 65 20 6e |rgv[0];.|@}..We n|
|00006130| 65 65 64 20 74 6f 20 65 | 78 61 6d 69 6e 65 20 74 |eed to e|xamine t|
|00006140| 68 65 20 72 65 6d 61 69 | 6e 69 6e 67 20 65 6e 74 |he remai|ning ent|
|00006150| 72 69 65 73 20 69 6e 20 | 5c 76 65 72 62 7c 61 72 |ries in |\verb|ar|
|00006160| 67 76 7c 2c 20 6c 6f 6f | 6b 69 6e 67 20 66 6f 72 |gv|, loo|king for|
|00006170| 0a 63 6f 6d 6d 61 6e 64 | 2d 6c 69 6e 65 20 61 72 |.command|-line ar|
|00006180| 67 75 6d 65 6e 74 73 2e | 0a 40 64 20 49 6e 74 65 |guments.|.@d Inte|
|00006190| 72 70 72 65 74 20 63 6f | 6d 2e 2e 2e 0a 40 7b 77 |rpret co|m....@{w|
|000061a0| 68 69 6c 65 20 28 61 72 | 67 20 3c 20 61 72 67 63 |hile (ar|g < argc|
|000061b0| 29 20 7b 0a 20 20 63 68 | 61 72 20 2a 73 20 3d 20 |) {. ch|ar *s = |
|000061c0| 61 72 67 76 5b 61 72 67 | 5d 3b 0a 20 20 69 66 20 |argv[arg|];. if |
|000061d0| 28 2a 73 2b 2b 20 3d 3d | 20 27 2d 27 29 20 7b 0a |(*s++ ==| '-') {.|
|000061e0| 20 20 20 20 40 3c 49 6e | 74 65 72 70 72 65 74 20 | @<In|terpret |
|000061f0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 73 74 72 |the argu|ment str|
|00006200| 69 6e 67 20 5c 76 65 72 | 62 7c 73 7c 40 3e 0a 20 |ing \ver|b|s|@>. |
|00006210| 20 20 20 61 72 67 2b 2b | 3b 0a 20 20 7d 0a 20 20 | arg++|;. }. |
|00006220| 65 6c 73 65 20 62 72 65 | 61 6b 3b 0a 7d 40 7d 0a |else bre|ak;.}@}.|
|00006230| 0a 0a 53 65 76 65 72 61 | 6c 20 66 6c 61 67 73 20 |..Severa|l flags |
|00006240| 63 61 6e 20 62 65 20 73 | 74 61 63 6b 65 64 20 62 |can be s|tacked b|
|00006250| 65 68 69 6e 64 20 61 20 | 73 69 6e 67 6c 65 20 6d |ehind a |single m|
|00006260| 69 6e 75 73 20 73 69 67 | 6e 3b 20 74 68 65 72 65 |inus sig|n; there|
|00006270| 66 6f 72 65 2c 0a 77 65 | 27 76 65 20 67 6f 74 20 |fore,.we|'ve got |
|00006280| 74 6f 20 6c 6f 6f 70 20 | 74 68 72 6f 75 67 68 20 |to loop |through |
|00006290| 74 68 65 20 73 74 72 69 | 6e 67 2c 20 68 61 6e 64 |the stri|ng, hand|
|000062a0| 6c 69 6e 67 20 74 68 65 | 6d 20 61 6c 6c 2e 0a 40 |ling the|m all..@|
|000062b0| 64 20 49 6e 74 65 72 70 | 72 65 74 20 74 68 65 2e |d Interp|ret the.|
|000062c0| 2e 2e 0a 40 7b 7b 0a 20 | 20 63 68 61 72 20 63 20 |...@{{. | char c |
|000062d0| 3d 20 2a 73 2b 2b 3b 0a | 20 20 77 68 69 6c 65 20 |= *s++;.| while |
|000062e0| 28 63 29 20 7b 0a 20 20 | 20 20 73 77 69 74 63 68 |(c) {. | switch|
|000062f0| 20 28 63 29 20 7b 0a 20 | 20 20 20 20 20 63 61 73 | (c) {. | cas|
|00006300| 65 20 27 63 27 3a 20 63 | 6f 6d 70 61 72 65 5f 66 |e 'c': c|ompare_f|
|00006310| 6c 61 67 20 3d 20 46 41 | 4c 53 45 3b 0a 09 09 62 |lag = FA|LSE;...b|
|00006320| 72 65 61 6b 3b 0a 20 20 | 20 20 20 20 63 61 73 65 |reak;. | case|
|00006330| 20 27 6e 27 3a 20 6e 75 | 6d 62 65 72 5f 66 6c 61 | 'n': nu|mber_fla|
|00006340| 67 20 3d 20 54 52 55 45 | 3b 0a 09 09 62 72 65 61 |g = TRUE|;...brea|
|00006350| 6b 3b 0a 20 20 20 20 20 | 20 63 61 73 65 20 27 6f |k;. | case 'o|
|00006360| 27 3a 20 6f 75 74 70 75 | 74 5f 66 6c 61 67 20 3d |': outpu|t_flag =|
|00006370| 20 46 41 4c 53 45 3b 0a | 09 09 62 72 65 61 6b 3b | FALSE;.|..break;|
|00006380| 0a 20 20 20 20 20 20 63 | 61 73 65 20 27 74 27 3a |. c|ase 't':|
|00006390| 20 74 65 78 5f 66 6c 61 | 67 20 3d 20 46 41 4c 53 | tex_fla|g = FALS|
|000063a0| 45 3b 0a 09 09 62 72 65 | 61 6b 3b 0a 20 20 20 20 |E;...bre|ak;. |
|000063b0| 20 20 63 61 73 65 20 27 | 76 27 3a 20 76 65 72 62 | case '|v': verb|
|000063c0| 6f 73 65 5f 66 6c 61 67 | 20 3d 20 54 52 55 45 3b |ose_flag| = TRUE;|
|000063d0| 0a 09 09 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 |...break|;. |
|000063e0| 64 65 66 61 75 6c 74 3a | 20 20 66 70 72 69 6e 74 |default:| fprint|
|000063f0| 66 28 73 74 64 65 72 72 | 2c 20 22 25 73 3a 20 75 |f(stderr|, "%s: u|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.